I have 3 radiobutton in my HTMl and 3 differents of combo box . I want Crtl enable/disable of combo box through radiobutton. For example, when I click on G1 radio button only g1 combo box is enable & others are disable. How do I this with JS !?
<input type="radio" name="g1" value="g1"> G1
<input type="radio" name="g2" value="g2"> G2
<input type="radio" name="g3" value="g3"> G3
<select name="g1">
<option value="one">one</option>
<option value="two">two</option>
<option value="three">three</option>
<select name="g2">
<option value="one">one</option>
<option value="two">two</option>
<option value="three">three</option>
<select name="g3">
<option value="one">one</option>
<option value="two">two</option>
<option value="three">three</option>
Try this code in jQuery this works fine:
html:
JSFIDDLE:
*http://jsfiddle.net/Xbcvh/*