如何在Jquery中勾選複選框時顯示提示框?當複選框未被選中時,警告框將消失。在Jquery中勾選複選框時顯示提示框
我試過下面的代碼,但它不起作用。誰能幫我嗎?謝謝!
<script type="text/javascript">
$(document).ready(function(){
if($('#chkAll').is(':checked'))
{
alert("im checked");
}
});
</script>
<input id="chkAll" />