本文共 670 字,大约阅读时间需要 2 分钟。
$("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);
转载于:https://blog.51cto.com/1197822/2157671