I have written jQuery like below
$("#form-search").submit(function(e){
e.preventDefault();
if (validateForm() === true) {
$('#studentmodal').modal('show');
//alert('the form is valid');
}
return false;
});
Now I want to display pop up only if form has been validated successfully. The above code is not working!!!
Please help !!!