very new to javascript, but any help to get me started would be greatly 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 to go out if the "Burger" radio button is not selected. I'm not sure if Javascript or CSS is the best way to do this. Thanks in advance!
javascript css checkbox radio
Rich701
source share