jquery添加属性的方法

$("#id" ).prop('checked', true);
$("#id" ).attr('checked', 'true');
原文地址:https://www.cnblogs.com/miye/p/7343878.html