enable/disable dynamic form elements

P

prisk

Hi,
I have a form that has checkboxes and lists generated in php with the
names like this
<input name=chk<?$i$j?> onClick="EnableLst(name of checkbox)">
<select name =lst<?$i$j?> disabled>
in a loop that generates them
now I want to be able when I click on the checkbox, it automatically
enable the select which is disabled by default.
I want to use a function in javascript, that will receive the name of
checkbox in parameter and changes the state of the select element.
The trick is that I dont know how to retreive the checkbox name :(
Any suggestions ?
Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top