hi!
in my project textboxes and radiobuttons are generating at runtime. And my problem is that i want only that textbox to be enabled if radiobutton in front of that text box is selected. name of each element is generating at runtime as number of textboxes is not fixed.

please help it's very urgent!

thanks in advance!

Well, you could give each radio button an unique id, and check at runtime with javascript if the element with that id is checked, and then set the according textbox to visible

ok thanks
But Radio button and text boxes are dynamic...

Yes, i suppose they are generated by PHP or ASP?
then you can just ad the id attribute in there?
Or alternatively you could use javascript to itterate over all checkbox objects and set their ids

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.