148
rated 0 times
[
151]
[
3]
/ answers: 1 / hits: 20999
/ 12 Years ago, tue, october 2, 2012, 12:00:00
very new to javascript, but any help to get me started would be appreciated. I have a simple form:
<div><input type=radio name=o1 id=burger />Burger</div>
<div id=yesFries><input type=checkbox name=e1 id=fries />Fries with that?</div>
<div><input type=radio name=o1 id=pizza />Pizza</div>
<div><input type=radio name=o1 id=hotdog />Hot Dog</div>
I want the Fries checkbox greyed out unless the Burger radio button is selected. I'm not sure if Javascript or CSS is the best way to do it. Thanks in advance!
More From » css