Answers
Oct 30, 2007 - 01:05 PM
-------------------- Yes No
abcdef -------------------------------------------------------------------------------
---------------------------------The reason it's behaving the way i mentioned earlier is because i moved the radio field inside the form, which is how we want it to be.Any help on how to get it to work by having the radio field inside the form will be much appreciated.Thank you.
Nov 07, 2007 - 03:35 AM
In your javascript, you're iterating through all the controls and disabling them, including your radio button. That's why it's giving you the behavior you're experiencing.
Basically, you're still going to iterate all the controls in the form, but when you get to your radio button(s), you're going to leave them enabled by ignoring them...
if (elem.type != "hidden") {
if (elem.type != "radio") {
elem.disabled = state ;
}
}
That will keep all radio buttons enabled. You can refine it by looking at the name or adding an id property and excluding the radio button(s) programmatically.
I hope this helps,
Ric
Nov 07, 2007 - 12:46 PM
Add New Comment