给定:
html
<input checked="checked" class="list_completed_checkbox" id="list_item_completed" name="list_item[completed]" type="checkbox" value="1">
jQuery:
$('.list_completed_checkbox').change(function() {
$(this).attr('disabled', 'disabled');
});
当您选中或取消选中该复选框时,为什么禁用的属性没有应用于输入?
谢谢
最佳答案
关于javascript - 在输入上使用 Change,然后修改输入的 ATTR?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6538126/