Member_2_1242703
asked on
Alert after MVC form submitted
I'm trying to have a alert pop up when a form is submitted. Right now I have an alert but it pops up even when the validation of the form has not been met.
How do I get it to wait?
<input type="submit" value="Create" class="btn btn-default" id="submitButton" name="submitButton" />
<script>
$(document).ready(function(){
$("#submitButton").on("click",function()
{
alert('my alert');
});
});
</script>
How do I get it to wait?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.