$()

The jQuery function. Accepts a CSS selector, HTML string, or DOM element and returns a jQuery object with matched elements.

Syntax

jquery
$(selector)
$(htmlString)
$(element)

Example

jquery
$("p")              // all <p> elements
$(".active")        // elements with class active
$("#header")        // element with id header
$("ul li:first")    // first <li> in a <ul>
$(document)         // the document object
$("<div class='box'>New</div>")