Hello C# Corner,
Checkbox to be checked before submit the information .If its false , message box appears . No information will be inserted to database
when checkbox is false , only when its true.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Raja TPosted Feb 2, 2016, 11:25 PM
Ranjit PowarPosted Feb 2, 2016, 9:54 PM
$('form').submit (function (){
if ($('#checkbox1').is(':checked'))
{
alert('your message');
}
});
If it helps you, select it as correct answer