<script src="js/jquery-1.5.2.js" type="text/javascript"></script>
<script type="text/javascript">
//注意ie8和高版本的firefox不支持jquery 对checked的选择器
//var s=$('input[type="checkbox"][name="xxx"][checked]');获取不到选定的元素
function() {
"form").click(function() {
var str = "";
var arrChk = $("input[type='checkbox']");
function() {
if ($(this).attr("checked")) {
this).val() + ",";
}
});
window.alert(str);
"#subject_ids").attr("value", str);
});
});
</script>
标签:Jquery,function,checkbox,Firefox,str,input,var,checked
From: https://blog.51cto.com/u_16179085/6663467