Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的页面中有一个复选框。我编写了 javascript,这样一旦在我的页面中发生点击,属性就会被填充。我必须根据复选框是否选中来为复选框分配真或假。我不知道如何分配自动态填充以来的值
我现在像这样填充我需要真或假(#faxbox)。如何实现这一点
我想这会对你有所帮助。
<input class="chkField" type="checkbox" name="checkbox"> $('.chkField').change(function () { if ($(this).is(':checked')) { alert('Checked'); } else { alert('UnCheked'); }