Separate names with a comma.
Discussion in 'Design and Graphics' started by sarahjoness, Dec 10, 2015.
What's the Difference between event.preventDefault() and return false in jQuery.
The http://forums.macrumors.com/forums/web-design-and-development.58/ would be the more appropriate forum for this.
event.preventDefault() cancels the default behavior, submitting a form on click or clicking a link.
Return false prevents events from bubbling up the DOM tree, therefore could be seen as follows:
More on events can be read on Peter-Paul Kochs blog: http://www.quirksmode.org/js/events_order.html
You can read into why later; if you're newer to programming just always use preventDefault();