I want to trigger $.ajax on form onsubmit and return true only after Ajax return is something valid.
$.ajax
onsubmit
return true
For example:
Return value at mark 1 is for your success function of ajax request, not for your validation function. Therefore even if it returns it returns only from there and not from validation function which is mark 2