我有这样的事情:
<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>
<div class="pricing-levels">
<p>Which level would you like? (Click all that apply)</p>
<input type="checkbox" name="vehicle" value="Bike">Level 1<br>
<input type="checkbox" name="vehicle" value="Bike">Level 2<br>
<input type="checkbox" name="vehicle" value="Bike">Level 3<br>
<input type="checkbox" name="vehicle" value="Bike">Level 4<br>
<input type="checkbox" name="vehicle" value="Bike">Level 5<br>
<input type="checkbox" name="vehicle" value="Bike">Level 6<br>
<input type="checkbox" name="vehicle" value="Bike">Level 7<br>
</div>
</form>
我想在所有前三个复选框都未选中时执行一个操作(那些在.pricing-level
div 上方的复选框。如何做到这一点?(因为我想.pricing-level
在它们都未选中时隐藏 div。)