CodeIgniter Forums
input type return undefined value - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: General (https://forum.codeigniter.com/forum-1.html)
+--- Forum: Lounge (https://forum.codeigniter.com/forum-3.html)
+--- Thread: input type return undefined value (/thread-71528.html)



input type return undefined value - kvanaraj - 08-24-2018

echo '<td id="texttwo_'.$row['id'].'"> 
  <input type="number" min="0" max="999" name="india"  
  onChange="sum('.$row['id'].');" class="txtbox" disabled="disabled" ></td>';

<script>

 var txtSecondNumberValue = document.getElementById('texttwo_'+rowid).value;

       alert(txtSecondNumberValue );

it shows undefined 

how to solve this.