I have a form, and when I submit him I execute multiple script. Here is my code:
$(\"#RequestCreateForm\").submit(function (e) {
if ($(\"#RequestCreateForm\"
Here is my approach to avoid the infinite loop.
) to mimic the submit button;$('#submit').click(function() { if(//validation rules is ok) { $("#RequestCreateForm").submit(); //assuming the form id is #RequestCreateForm } else { return false; } });