<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> <script type="text/javascript" src="Scripts/jquery-1.4.1.min.js"></script> <script type="text/javascript"> $(function () { $("#btnSubmit").click(function () { $("input:checkbox").each(function (i) { if ($(this).attr("checked")) { alert($(this).val()); } }); }); }); </script> </head> <body> <form id="form1" runat="server"> <div> <input type="checkbox" value="1" />1 <input type="checkbox" value="2" />2 <input type="checkbox" value="3" />3 <input type="checkbox" value="4" />4<br /> <input type="button" id="btnSubmit" value="提交" /> </div> </form> </body> </html>