jquery读取checkbox的值

////////////////////////////////////////////HTML代码,checkbox///////////////////////////////////////////////////////////////////
                         <td style=" 150px"> <label> <input id="checkDesign" type="checkbox" name="operType" value="Design" />Design </label> </td> <td style=" 150px"> <label> <input id="checkFoundry" type="checkbox" name="operType" value="Foundry" /> Foundry </label> </td> <td style=" 150px"> <label> <input id="checkOthers" type="checkbox" name="operType" value="Others" /> Others </label> </td>

////////////////////////jquery读取上面checkbox的所有被勾选的值////////////////////////

var notes = new Array();
$('input:checkbox:checked').each(function (i) {
  notes.push($(this).val());
});
原文地址:https://www.cnblogs.com/huhuiliang/p/4359349.html