No-conflict mode

.. code-block:: javascript

var $j = jQuery.noConflict();

Append a node to the DOM

.. code-block:: javascript


Get first element of several

CSS pseudo-selectors $(".stuff li:first");

DOM traversal $(".stuff").first();

Searches for the closest ancestor that matches



Use $(this) instead of this - it's a jQuery object

Get custom data attributes from the DOM


Get direct children from an element


Get parent element of a node