我不想做任何花哨的事情......只是希望“noshowuntilchangevelocity”类的内容在特定复选框状态更改时在显示和隐藏之间切换。
$(document).ready(function()
{
$("input#velocity").change(function()
{
$('#noshowuntilchangevelocity').toggle();
});
});
<input id="velocity" name="velocity" type="checkbox"value="Y" checked>
<div id="noshowuntilchangevelocity"style="display: hidden;">
<p class="bolder">You are changing this selection</p>
</div>