$('#btnInsert').click(function() { if ($('#tbStudentName').val() == '') { alert('Please enetre!'); return false; } });
function InsertClick(button) { if ($('#tbStudentName').val() == '') { alert('Please enetre!'); return false; } }
<input type="submit" value="Insert" onclick="return Validate(this);" /> function Validate(button){ if($('#tbemail').val()==''){ alert('Can't be blank!'); return 1==3; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)