I have a php script where i have a textbox which is placed inside a while loop, So the textbox Id varies as follows.
while{$i<10)
{
<input type = "text" id='text$i' />
$i++;
}
Now in javascript i want to retrieve the value of that textbox
<script>
var id=document.getElementById("textbox//Whatshouldbe(i)value").value();
</script>
If $i=9
then the textbox Id will be textbox9
. How to get the id name in javacript?