如何判断是否已经打勾?
多选框checkbox: $("#chk1").attr("checked",'');//不打勾
$("#chk2").attr("checked",true);//打勾
if($("#chk1").attr('checked')==undefined) //判断是否已经打勾
$("#c").attr("checked")
[code="html"]
<br> function test(){<br> alert($("#c").attr("checked"));<br> }</p> <pre><code> </script> </head> <body> <input type="checkbox" id="c"> <input type="button" value="ok" onclick="test()"> </body> </code></pre> <p></html><br> [/code]</p>