I am coding in PHP. I have a table containing 'x' number of Textboxes. 'x' varies.
I want the textboxes initially readOnly. But when I click on a textbox, it should be editable.
I can write the code for fixed number of textboxes. But I want to know how it is done for variabe number.
My sample code:
<form>
<?php
for($i=0;$i<$x;$i++)
{
echo("<input name='fe_text[]' type='text' readonly /><br/>");
}
?>
<input type="submit" value="submit"/>
</form>