JQuery newbie here.
I have a search form with about 16 fields, most of them are textboxes. rest of them are dropdowns. I have 3 radio buttons beneath these fields. When 1st one is selected, then some of the fields in the form should be disabled. When 2nd or 3rd radio option is selected, all fields should be enabled. I have the following code form this post. But it disables only two textboxes by its names. Anything better than this code?
Lets assume, the radio button names are option1
, option2
, option3
.