$

Selects all elements with given selector.

$(selector: (string | HTMLElement))
Parameters
selector ((string | HTMLElement))
Example
$("*") // Select all elements in document
$(".class") // Selects all elements with the given class.
$("#id") // Selects a element with the given id.
$("[name=”value”]") // Selects elements that have the specified attribute with a value exactly equal to a certain value.
$("[name]") // Selects elements that have the specified attribute, with any value.
$(".class:eq(index)") // Select the element at index n within the matched set.
$(".class:gt(index)") // Select all elements at an index greater than index within the matched set.
$(".class:lt(index)") // Select all elements at an index less than index within the matched set.
$(".class:odd") // Selects odd elements, zero-indexed.
$(".class:even") // Selects even elements, zero-indexed.
Instance Members
▸ ready(handler)
▸ find(selector)
▸ push(element)
▸ index()
▸ addClass(className)
▸ hasClass(className)
▸ removeClass(className)
▸ toggleClass(className)
▸ val(val)
▸ prop(prop, val)
▸ html(html)
▸ attr(attr, val)
▸ data(key, val)
▸ text(text)
▸ removeAttr(attr)
▸ css(key, value)
▸ height()
▸ width()
▸ innerHeight()
▸ innerWidth()
▸ outerHeight()
▸ outerWidth()
▸ offset()
▸ append(element)
▸ appendTo(element)
▸ after(element)
▸ before(element)
▸ prepend(element)
▸ clone()
▸ empty()
▸ remove()
▸ on(eventNames, handler, once)
▸ off(eventNames, handler)
▸ unbind(eventNames, handler)
▸ one(eventNames, handler)
▸ trigger(eventNames, options)
▸ hover(onMouseOver, onMouseOut)
▸ submit(handler)
▸ reset()
▸ children(selector)
▸ parents(selector)
▸ siblings(selector)
▸ parent(selector)
▸ closest(selector)
▸ serialize()
▸ fadeIn(time, callback)
▸ fadeOut(time, callback)
▸ show(time, direction)
▸ hide(time, direction)
▸ toggle(time, direction)
▸ ajax(options)