jQuery
Last edited 26 February 2009
More by kim3er »
Height & Width

$().height() = CSS Height  
$().innerHeight() CSS Height + Padding
$().outerHeight() = CSS Height + Padding + Border
  $().outerHeight(true) = CSS Height + Padding + Border + Margin
Selectors

$("p span") = $("p").find("span") = $("span", "p")
Collapsing Margins

When two margins touch, the larger of the two margins are promoted to the parent. The child's is then cancelled out.
Mouse Wheel

Delta, 1 is up, -1 is down.
Events

$().toggle(fn1, fn2, fn3,...) - Toggle takes multiple functions as arguments. On each click of the matched element, the next function is trigger.
The content on this page is provided by a Google Notebook user, and Google assumes no responsibility for this content.