I use this function to validate my form:
<script type="text/javascript">
$(document).ready(function() {
$('#tracks_form').validate({
submitHandler: function(form) {
form.submit();
}
})
});
</script>
What I need is to create a timeout function inside this one.
so, as soon as the form has been validated, it will stop the page for about 2-3 seconds and THEN will finally submit the form.
How do I modify this function to achieve this result?
Thank you so much!
You can use
setTimeoutto delay the form submit