attr

对于checkbox    判断是否选中   $("#ID").is("checked")

设置        $("#id").attr("checked":"checked");

原文地址:https://www.cnblogs.com/jcfxl/p/6061788.html