how to prevent form from submitting until condition is met jquery code example
Example: jquery prevent form submit
//option A
$("form").submit(function(e){
e.preventDefault();
});
//option A
$("form").submit(function(e){
e.preventDefault();
});