html:
<input class="checkList" type="checkbox" name="name" />
<button class="disabledBtn">禁用</button>
<button class="setBtn">编辑</button>
js:
//禁用
$(".disabledBtn").click(function(){
$(".checkList").prop("disabled", true)
})
//编辑
$(".setBtn").click(function(){
$(".checkList").prop("disabled", false)
})
js动态选中也是一样的,把disabled属性换成checked就可以啦