jQuery show some content on radio select
Posted
by
I-M-JM
on Stack Overflow
See other posts from Stack Overflow
or by I-M-JM
Published on 2011-01-10T04:06:58Z
Indexed on
2011/01/10
4:53 UTC
Read the original article
Hit count: 271
jQuery
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
© Stack Overflow or respective owner