////////////////////////////////////////////HTML代码,checkbox///////////////////////////////////////////////////////////////////
<td style="width: 150px"> <label> <input id="checkDesign" type="checkbox" name="operType" value="Design" />Design </label> </td> <td style="width: 150px"> <label> <input id="checkFoundry" type="checkbox" name="operType" value="Foundry" /> Foundry </label> </td> <td style="width: 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()); });
原文:http://www.cnblogs.com/huhuiliang/p/4359349.html