diff options
-rw-r--r-- | notes.txt | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -2,3 +2,10 @@ - $(function() {} is same as $(document).ready(function() {}, $(window).load(function () {} comes later in rendering process when all tags are ready such as images + +- stop the default action + e.g. you have an anchor and register a listener for a .click() event using + jquery, but you don't want default href="foo" behavior so you do: + + event.preventDefault(); /* prevent href from doing its job */ + return false; /* stops bubbling up */ |