jQuery show some content on radio select
- by I-M-JM
Hi
I have 2 radio button (i.e., <input type="radio">) with values "yes","no"
Now, I need to show a 2 other fields when someone selects "yes"
I understand that I need to place them in <div>, but when someone selects "yes", then div should show, with some highlight
I need to achieve these 2 things (that I guess): showing up the div and highlighting it for some time (for user attention).
<input type="radio" id="dl" value="YES" />Yes
<input type="radio" id="dl" value="NO" checked />No
<div id="dlyes"><label>Number</label><input type="text" id="dlno" /></div>
Does anyone know how to achieve this?
Thanks