I am newbie to jQuery. I have a form like this
<select name= "menus">
<option value="">--Select--</option>
<option value="a">a</option>
<option value="b">b</option>
<option value="c">c</option>
<option value="d">d</option>
<option value="e">e</option>
</select>
Now I need that when I will click on “a” ,it will make an input field just in another where there it should come like
<input type="text" name="a" />
Any help and suggestions will be highly appreciable.
[edit]
In this way more number of field can be added at a time just like this code
<input type="text" name="a"/>
<input type="text" name="c"/>
<input type="text" name="d"/>
When the dropdown list selection changes we add the
fooclass to the corresponding input element:And here’s a demo.