jQuery: 设置checked属性

改变radio和checkbox的checked属性,使用prop()。例如:        

$(selector).prop( "checked", true );

原文地址:https://www.cnblogs.com/sungang3225/p/3758252.html