У меня есть эти две форм:Снимите галочку, если выбран радиоканал и наоборот?
<div class="pricing-details pricing-details-downloads">
<h4>Single purchase (60 lessons)</h4>
<h4>Bulk Purchase: Lesson</h4>
<div class="pricing-details-separator"></div>
<form action="">
<input type="checkbox" name="vehicle" value="Bike">Lesson Audio/<span class="pricing-box-price">$19.95 USD</span><br>
<input type="checkbox" name="vehicle" value="Bike">Lesson PDFs/<span class="pricing-box-price">$19.95 USD</span><br>
<input type="checkbox" name="vehicle" value="Bike">Review Audio/<span class="pricing-box-price">$19.95 USD</span><br>
</form>
<form class="pricing-last-form" action="">
<input type="radio" name="sex" value="male"><strong>Single Level Download $49.95:</strong> Choose a single level (1 to 7) and receive access to all lessons, PDFs and review audio for that level, plus 30 days of online access ($80 value). Email us your level choice after purchase.<br>
<input type="radio" name="sex" value="male"><strong>3 Level Download $99.95:</strong> Choose any 3 levels (1 to 7) and receive access to all lessons, PDFs and review audio for those levels, plus 60 days of online access ($190 value). Email us your level choices after purchase.<br>
<input type="radio" name="sex" value="male"><strong>All Access Package $199.9:</strong> Receive access to all lessons, PDFs and review audio for all 7 levels, plus 90 days of online access ($300 value).<br>
</form>
</div>
Я хочу, чтобы все флажки, чтобы быть сняты, если выбран какой-либо ящик радио, и я хочу, выбранное радио ЯЩИКА невыбранных если флажок установлен.
Каков самый простой способ выполнить это?
'Click' не является хорошим событием, потому что вы также можете перемещаться с клавиатуры и нажимать' Space' .. . –
@FlashThunder yes .... изменено на событие 'change' –