I have a page where when the user clicks on a checkbox I want the text box next to it to become enabled so the user can edit the data inside it.
The checkbox has a unique reference number assigned to it from a database record. There could be up to 5 or 6 checkboxes on the form at the same time and I am using the refernce number as part of the id for both the checkboxes and the textboxes.
so i could have the following:
<input type="text" id=txt+RefNum> <input type="checkbox" id=chk+RefNum>
where RefNum=1234.
I can get the ID of the checkbox, but I dont know how to get the ID of the textbox and change it to enabled.
Any help would be much appreciated.
David
The checkbox has a unique reference number assigned to it from a database record. There could be up to 5 or 6 checkboxes on the form at the same time and I am using the refernce number as part of the id for both the checkboxes and the textboxes.
so i could have the following:
<input type="text" id=txt+RefNum> <input type="checkbox" id=chk+RefNum>
where RefNum=1234.
I can get the ID of the checkbox, but I dont know how to get the ID of the textbox and change it to enabled.
Any help would be much appreciated.
David