//判断checkbox 是否选中$("#id").is(":checked");//选中,返回true,没选中,返回false //设置checkbox为选中状态$("#id").prop("checked",true); //设置checkbox为不选中状态$("#id").prop("checked",false);
JS
本文共 220 字,大约阅读时间需要 1 分钟。
//判断checkbox 是否选中$("#id").is(":checked");//选中,返回true,没选中,返回false //设置checkbox为选中状态$("#id").prop("checked",true); //设置checkbox为不选中状态$("#id").prop("checked",false);
JS
转载于:https://www.cnblogs.com/leebokeyuan/p/9252428.html