If a link has a click event I can stop that from firing by just returning false so that the browser stays on the current page. How would I do this when the click event is supposed to send a synchronous AJAX call using $.ajax()?
I only want the click event to return false and stop the link from being followed if the AJAX request experiences an error.