Currently I have this radio buttons
- Eletronics
- Computers
- Others
What I am trying to do is, if radio button Others
is selected, I would like to display an input text field and let the user type.
What I would like to do is, when I select Others
and type something inside the input field, then when I choose back to Eletronics
or Computers
, I would like to clear the text that I wrote inside input field.
Please kindly provide me with the solution of JavaScript or jQuery.
Here is my code sample. Please kindly check it: http://jsfiddle.net/dnGKM/
Try with this Solution:
Here there is a JSFiddle link:
http://jsfiddle.net/dnGKM/4/