summaryrefslogtreecommitdiffstats
path: root/notes.txt
blob: 0780aa66f0af129d954b2442b156256bcf3d4d4c (plain)
1
2
3
4
5
6
7
8
9
10
11
[jquery]
-  $(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 */