/ Published in: jQuery
Alternative for "return false;"
stopPropagation(); prevents for bubbling up the dom
preventDefault(); prevents the browser from performing the default action
stopPropagation(); prevents for bubbling up the dom
preventDefault(); prevents the browser from performing the default action
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function() { return false; } // is equal to function(e) { e.preventDefault(); e.stopPropagation(); }