\"return false\" seems to work in the submitHandler but I\'m not sure why.
function submitHandler() {
$.post(
You should return false when:
You want to prevent the default event action
onsubmit event for example, the default action of this event is send the form data to the server, or an onclick event on an anchor element, the default event action is to follow the anchor's HREF.You want to stop the event bubbling.
Returning false from an event handler, is like executing both event.preventDefault(); and event.stopPropagation();.