I am going to generate some checkbox within some rows of a table.
I can use this code:
Code: Select all
<td>
echo "<input name="select_meї]" type=checkbox
value="$varї$i]">";
<input name="selectedї]" type="hidden" value="">
</td>but furthermore I want to write a javascript code for doing such work :
eveytime that user click on each of these checkboxes, if this click means select,value of hidden field sets to value of checkbox otherwise value of hidden field sets to null or an empty string.
and my problem is here:
I am not able to understand that what is each checkbox name within javascript code (and what is each selected[] hidden field name that nessasary to modify it everytime is needeed).
I have only this name: select_me[] and do not know how work with it.
excuse me ,this may be a petty question to you but it is a problem for me.
Could you suggest me a way to solve this problem?
I appreciate your comments.
I apologize in advance if I have overlooked forum, but I haven't been
able to find a discussion of such problem.Can someone point me to docs if available.
Thanks you, very much, in advance.
Regards.