event.preventDefault() Vs. return false
When you return false; from an event handler it prevents the default action for that event and stops the event bubbling up through the DOM. It is effectively the same as calling both e.preventDefault and e.stopPropagation on the passed jQuery.Event object.
jQuery e.preventDefault() will prevent the default event from occurring.
- Prevent a submit button from submitting a form.
- Prevent a link from following the URL.
jQuery event.stopPropagation() method stops the bubbling of an event to parent elements, preventing any parent event handlers from being executed.
It simply stops the execution of the function(). That means, it will end the whole execution of process.
The reason to use return false; is that you don't want to execute the function any more in strictly mode .