5 ms·
Returning false is equivalent to calling both preventDefault() (that's what you want) AND stopPropagation() This is so in jQuery. In basic Javascript "return
by cema 15y ago
Returning false is equivalent to calling both preventDefault()
(that's what you want) AND stopPropagation()
This is so in jQuery. In basic Javascript "return false" does not stop the propagation. See http://stackoverflow.com/questions/1357118/javascript-event-preventdefault-vs-return-false http://stackoverflow.com/questions/1357118/javascript-event-...