Here is your script:
<script>
$(document).ready(function () {
$('#checkBtn').click(function() {
checked = $("input[type=checkbox]:checked").length;
if(!checked) {
alert("You must check at least one record.");
return false;
}
});
});
</script>
Add this to your submit button:
id="checkBtn"
No comments:
Post a Comment