In View
<script>
$(function () {
$('#btnconfirm').click(function () {
if ($("#chk").attr('checked') !== undefined ){
return true;
}
else {
alert("Please Select Checkbox ");
return false;
}
});
});
</script>
<div style="float: left">
<input type="checkbox" name="chk" id="chk" />
I read and accept the terms and Conditions of registration
</div>
<input type="submit" value="Confirm" id="btnconfirm" />
No comments:
Post a Comment