标签:复选框 func 设置 pkg str cti 简单应用 方法 put
设置name为schoolId的复选框组全部选中$("input[name=‘schoolId‘]").iCheck(‘check‘);
$("input:checkbox[name=‘schoolId‘]").iCheck(‘check‘);
$("input[name=‘schoolId‘]").iCheck(‘uncheck‘);
$("input:checkbox[name=‘schoolId‘]").iCheck(‘uncheck‘);
$("input:checkbox[name=‘school‘]").removeAttr("checked");
var schoolValue = "";
$(‘#billPkg input[name="school"]:checked‘).each(function(){
schoolValue = $(this).val();
if (schoolValue != ‘‘) {
schoolValue += schoolValue + ",";
}
});
schoolValue = schoolValue.substr(0, schoolValue.length-1);
标签:复选框 func 设置 pkg str cti 简单应用 方法 put
原文地址:http://blog.51cto.com/1197822/2157671