In a jQuery event handler, return false is the same as adding both e.preventDefault() and e.stopPropagation(). You need at most one of the three, depending on whether you want to stop the default behavior, the event bubbling (propagation), neither, or both. If you want the code in your event handler to be the only thing that happens when that event is triggered, use return false.
Garann On May 2, 5:25 pm, John Fawcett <[email protected]> wrote: > function(e){ > e.preventDefault(); > e.stopPropagation(); > // Your code > return false; > > } -- Our Web site: http://www.RefreshAustin.org/ You received this message because you are subscribed to the Google Groups "Refresh Austin" group. [ Posting ] To post to this group, send email to [email protected] Job-related postings should follow http://tr.im/refreshaustinjobspolicy We do not accept job posts from recruiters. [ Unsubscribe ] To unsubscribe from this group, send email to [email protected] [ More Info ] For more options, visit this group at http://groups.google.com/group/Refresh-Austin
