I have a post form with a first dropdown for choosing a category and a second for choosing a subcategory. The second one changes according to the first category that was chosen.
I have many dropdowns and I show the most correct one depending on the chosen category.
I need to disable all dropdowns and enable that one so that I can submit the form correctly.
<select name='dropdown'></select>
<select name='dropdown'></select>
<select name='dropdown' id='1'></select>
How can I disable all selects with name = 'dropdown' except the one with id=’1′?
1 Answer