jQuery Reference

jQuery Resources

Results: 246

elements elements
ID Resource Example Description Type
1 bind() Deprecated in version 3.0. Use the on() method instead. Attaches event handlers to elements Event Methods
2 blur() Attaches/Triggers the blur event Event Methods
3 change() Attaches/Triggers the change event Event Methods
4 click() Attaches/Triggers the click event Event Methods
5 dblclick() Attaches/Triggers the double click event Event Methods
6 delegate() Deprecated in version 3.0. Use the on() method instead. Attaches a handler to current, or future, specified child elements of the matching elements Event Methods
7 die() Removed in version 1.9. Removes all event handlers added with the live() method Event Methods
8 error() Removed in version 3.0. Attaches/Triggers the error event Event Methods
9 event.currentTarget The current DOM element within the event bubbling phase Event Methods
10 event.data Contains the optional data passed to an event method when the current executing handler is bound Event Methods
11 event.delegateTarget Returns the element where the currently-called jQuery event handler was attached Event Methods
12 event.isDefaultPrevented() Returns whether event.preventDefault() was called for the event object Event Methods
13 event.isImmediatePropagationStopped() Returns whether event.stopImmediatePropagation() was called for the event object Event Methods
14 event.isPropagationStopped() Returns whether event.stopPropagation() was called for the event object Event Methods
15 event.namespace Returns the namespace specified when the event was triggered Event Methods
16 event.pageX Returns the mouse position relative to the left edge of the document Event Methods
17 event.pageY Returns the mouse position relative to the top edge of the document Event Methods
18 event.preventDefault() Prevents the default action of the event Event Methods
19 event.relatedTarget Returns which element being entered or exited on mouse movement Event Methods
20 event.result Contains the last/previous value returned by an event handler triggered by the specified event Event Methods
21 event.stopImmediatePropagation() Prevents other event handlers from being called Event Methods
22 event.stopPropagation() Prevents the event from bubbling up the DOM tree, preventing any parent handlers from being notified of the event Event Methods
23 event.target Returns which DOM element triggered the event Event Methods
24 event.timeStamp Returns the number of milliseconds since January 1, 1970, when the event is triggered Event Methods
25 event.type Returns which event type was triggered Event Methods
26 event.which Returns which keyboard key or mouse button was pressed for the event Event Methods
27 focus() Attaches/Triggers the focus event Event Methods
28 focusin() Attaches an event handler to the focusin event Event Methods
29 focusout() Attaches an event handler to the focusout event Event Methods
30 hover() Attaches two event handlers to the hover event Event Methods
31 keydown() Attaches/Triggers the keydown event Event Methods
32 keypress() Attaches/Triggers the keypress event Event Methods
33 keyup() Attaches/Triggers the keyup event Event Methods
34 live() Removed in version 1.9. Adds one or more event handlers to current, or future, selected elements Event Methods
35 load() Removed in version 3.0. Attaches an event handler to the load event Event Methods
36 mousedown() Attaches/Triggers the mousedown event Event Methods
37 mouseenter() Attaches/Triggers the mouseenter event Event Methods
38 mouseleave() Attaches/Triggers the mouseleave event Event Methods
39 mousemove() Attaches/Triggers the mousemove event Event Methods
40 mouseout() Attaches/Triggers the mouseout event Event Methods
41 mouseover() Attaches/Triggers the mouseover event Event Methods
42 mouseup() Attaches/Triggers the mouseup event Event Methods
43 off() Removes event handlers attached with the on() method Event Methods
44 on() Attaches event handlers to elements Event Methods
45 one() Adds one or more event handlers to selected elements. This handler can only be triggered once per element Event Methods
46 $.proxy() Takes an existing function and returns a new one with a particular context Event Methods
47 ready() Specifies a function to execute when the DOM is fully loaded Event Methods
48 resize() Attaches/Triggers the resize event Event Methods
49 scroll() Attaches/Triggers the scroll event Event Methods
50 select() Attaches/Triggers the select event Event Methods
51 submit() Attaches/Triggers the submit event Event Methods
52 toggle() Removed in version 1.9. Attaches two or more functions to toggle between for the click event Event Methods
53 trigger() Triggers all events bound to the selected elements Event Methods
54 triggerHandler() Triggers all functions bound to a specified event for the selected elements Event Methods
55 unbind() Deprecated in version 3.0. Use the off() method instead. Removes an added event handler from selected elements Event Methods
56 undelegate() Deprecated in version 3.0. Use the off() method instead. Removes an event handler to selected elements, now or in the future Event Methods
57 unload() Removed in version 3.0. Attaches an event handler to the unload event Event Methods
58 animate() Runs a custom animation on the selected elements Effect Methods
59 clearQueue() Removes all remaining queued functions from the selected elements Effect Methods
60 delay() Sets a delay for all queued functions on the selected elements Effect Methods
61 dequeue() Removes the next function from the queue, and then executes the function Effect Methods
62 fadeIn() Fades in the selected elements Effect Methods
63 fadeOut() Fades out the selected elements Effect Methods
64 fadeTo() Fades in/out the selected elements to a given opacity Effect Methods
65 fadeToggle() Toggles between the fadeIn() and fadeOut() methods Effect Methods
66 finish() Stops, removes and completes all queued animations for the selected elements Effect Methods
67 hide() Hides the selected elements Effect Methods
68 queue() Shows the queued functions on the selected elements Effect Methods
69 show() Shows the selected elements Effect Methods
70 slideDown() Slides-down (shows) the selected elements Effect Methods
71 slideToggle() Toggles between the slideUp() and slideDown() methods Effect Methods
72 slideUp() Slides-up (hides) the selected elements Effect Methods
73 stop() Stops the currently running animation for the selected elements Effect Methods
74 toggle() Toggles between the hide() and show() methods Effect Methods
75 addClass() Adds one or more class names to selected elements HTML / CSS Methods
76 after() Inserts content after selected elements HTML / CSS Methods
77 append() Inserts content at the end of selected elements HTML / CSS Methods
78 appendTo() Inserts HTML elements at the end of selected elements HTML / CSS Methods
79 attr() Sets or returns attributes/values of selected elements HTML / CSS Methods
80 before() Inserts content before selected elements HTML / CSS Methods
81 clone() Makes a copy of selected elements HTML / CSS Methods
82 css() Sets or returns one or more style properties for selected elements HTML / CSS Methods
83 detach() Removes selected elements (keeps data and events) HTML / CSS Methods
84 empty() Removes all child nodes and content from selected elements HTML / CSS Methods
85 hasClass() Checks if any of the selected elements have a specified class name HTML / CSS Methods
86 height() Sets or returns the height of selected elements HTML / CSS Methods
87 html() Sets or returns the content of selected elements HTML / CSS Methods
88 innerHeight() Returns the height of an element (includes padding, but not border) HTML / CSS Methods
89 innerWidth() Returns the width of an element (includes padding, but not border) HTML / CSS Methods
90 insertAfter() Inserts HTML elements after selected elements HTML / CSS Methods
91 insertBefore() Inserts HTML elements before selected elements HTML / CSS Methods
92 offset() Sets or returns the offset coordinates for selected elements (relative to the document) HTML / CSS Methods
93 offsetParent() Returns the first positioned parent element HTML / CSS Methods
94 outerHeight() Returns the height of an element (includes padding and border) HTML / CSS Methods
95 outerWidth() Returns the width of an element (includes padding and border) HTML / CSS Methods
96 position() Returns the position (relative to the parent element) of an element HTML / CSS Methods
97 prepend() Inserts content at the beginning of selected elements HTML / CSS Methods
98 prependTo() Inserts HTML elements at the beginning of selected elements HTML / CSS Methods
99 prop() Sets or returns properties/values of selected elements HTML / CSS Methods
100 remove() Removes the selected elements (including data and events) HTML / CSS Methods
101 removeAttr() Removes one or more attributes from selected elements HTML / CSS Methods
102 removeClass() Removes one or more classes from selected elements HTML / CSS Methods
103 removeProp() Removes a property set by the prop() method HTML / CSS Methods
104 replaceAll() Replaces selected elements with new HTML elements HTML / CSS Methods
105 replaceWith() Replaces selected elements with new content HTML / CSS Methods
106 scrollLeft() Sets or returns the horizontal scrollbar position of selected elements HTML / CSS Methods
107 scrollTop() Sets or returns the vertical scrollbar position of selected elements HTML / CSS Methods
108 text() Sets or returns the text content of selected elements HTML / CSS Methods
109 toggleClass() Toggles between adding/removing one or more classes from selected elements HTML / CSS Methods
110 unwrap() Removes the parent element of the selected elements HTML / CSS Methods
111 val() Sets or returns the value attribute of the selected elements (for form elements) HTML / CSS Methods
112 width() Sets or returns the width of selected elements HTML / CSS Methods
113 wrap() Wraps HTML element(s) around each selected element HTML / CSS Methods
114 wrapAll() Wraps HTML element(s) around all selected elements HTML / CSS Methods
115 wrapInner() Wraps HTML element(s) around the content of each selected element HTML / CSS Methods
116 add() Adds elements to the set of matched elements Traversing Methods
117 addBack() Adds the previous set of elements to the current set Traversing Methods
118 andSelf() Deprecated in version 1.8. An alias for addBack() Traversing Methods
119 children() Returns all direct children of the selected element Traversing Methods
120 closest() Returns the first ancestor of the selected element Traversing Methods
121 contents() Returns all direct children of the selected element (including text and comment nodes) Traversing Methods
122 each() Executes a function for each matched element Traversing Methods
123 end() Ends the most recent filtering operation in the current chain, and return the set of matched elements to its previous state Traversing Methods
124 eq() Returns an element with a specific index number of the selected elements Traversing Methods
125 filter() Reduce the set of matched elements to those that match the selector or pass the function's test Traversing Methods
126 find() Returns descendant elements of the selected element Traversing Methods
127 first() Returns the first element of the selected elements Traversing Methods
128 has() Returns all elements that have one or more elements inside of them Traversing Methods
129 is() Checks the set of matched elements against a selector/element/jQuery object, and return true if at least one of these elements matches the given arguments Traversing Methods
130 last() Returns the last element of the selected elements Traversing Methods
131 map() Passes each element in the matched set through a function, producing a new jQuery object containing the return values Traversing Methods
132 next() Returns the next sibling element of the selected element Traversing Methods
133 nextAll() Returns all next sibling elements of the selected element Traversing Methods
134 nextUntil() Returns all next sibling elements between two given arguments Traversing Methods
135 not() Returns elements that do not match a certain criteria Traversing Methods
136 offsetParent() Returns the first positioned parent element Traversing Methods
137 parent() Returns the direct parent element of the selected element Traversing Methods
138 parents() Returns all ancestor elements of the selected element Traversing Methods
139 parentsUntil() Returns all ancestor elements between two given arguments Traversing Methods
140 prev() Returns the previous sibling element of the selected element Traversing Methods
141 prevAll() Returns all previous sibling elements of the selected element Traversing Methods
142 prevUntil() Returns all previous sibling elements between two given arguments Traversing Methods
143 siblings() Returns all sibling elements of the selected element Traversing Methods
144 slice() Reduces the set of matched elements to a subset specified by a range of indices Traversing Methods
145 $.ajax() Performs an async AJAX request
146 $.ajaxPrefilter() Handle custom Ajax options or modify existing options before each request is sent and before they are processed by $.ajax() AJAX Methods
147 $.ajaxSetup() Sets the default values for future AJAX requests AJAX Methods
148 $.ajaxTransport() Creates an object that handles the actual transmission of Ajax data AJAX Methods
149 $.get() Loads data from a server using an AJAX HTTP GET request AJAX Methods
150 $.getJSON() Loads JSON-encoded data from a server using a HTTP GET request AJAX Methods
151 $.parseJSON() Deprecated in version 3.0, use JSON.parse() instead. Takes a well-formed JSON string and returns the resulting JavaScript value AJAX Methods
152 $.getScript() Loads (and executes) a JavaScript from a server using an AJAX HTTP GET request AJAX Methods
153 $.param() Creates a serialized representation of an array or object (can be used as URL query string for AJAX requests) AJAX Methods
154 $.post() Loads data from a server using an AJAX HTTP POST request AJAX Methods
155 ajaxComplete() Specifies a function to run when the AJAX request completes AJAX Methods
156 ajaxError() Specifies a function to run when the AJAX request completes with an error AJAX Methods
157 ajaxSend() Specifies a function to run before the AJAX request is sent AJAX Methods
158 ajaxStart() Specifies a function to run when the first AJAX request begins AJAX Methods
159 ajaxStop() Specifies a function to run when all AJAX requests have completed AJAX Methods
160 ajaxSuccess() Specifies a function to run when an AJAX request completes successfully AJAX Methods
161 load() Loads data from a server and puts the returned data into the selected element AJAX Methods
162 serialize() Encodes a set of form elements as a string for submission AJAX Methods
163 serializeArray() Encodes a set of form elements as an array of names and values AJAX Methods
164 data() Attaches data to, or gets data from, selected elements Miscellaneous Methods
165 each() Execute a function for each matched element Miscellaneous Methods
166 get() Get the DOM elements matched by the selector Miscellaneous Methods
167 index() Search for a given element from among the matched elements Miscellaneous Methods
168 $.noConflict() Release jQuery's control of the $ variable Miscellaneous Methods
169 $.param() Create a serialized representation of an array or object (can be used as URL query string for AJAX requests) Miscellaneous Methods
170 removeData() Removes a previously-stored piece of data Miscellaneous Methods
171 size() Removed in version 3.0. Use the length property instead Miscellaneous Methods
172 toArray() Retrieve all the DOM elements contained in the jQuery set, as an array Miscellaneous Methods
173 context Removed in version 3.0. Contains the original context passed to jQuery() Properties
174 jquery Contains the jQuery version number Properties
175 jQuery.fx.interval Change the animation firing rate in milliseconds Properties
176 jQuery.fx.off Globally disable/enable all animations Properties
177 jQuery.support A collection of properties representing different browser features or bugs (Intended for jQuery's internal use) Properties
178 length Contains the number of elements in the jQuery object Properties
179 * $("*") All elements Selector
180 #id $("#lastname") The element with id="lastname" Selector
181 .class $(".intro") All elements with class="intro" Selector
182 .class,.class $(".intro,.demo") All elements with the class "intro" or "demo" Selector
183 element $("p") All

elements

Selector
184 el1,el2,el3 $("h1,div,p") All

,
and

elements

Selector
185 Selector
186 :first $("p:first") The first

element

Selector
187 :last $("p:last") The last

element

Selector
188 :even $("tr:even") All even
Selector
189 :odd $("tr:odd") All odd
Selector
190 Selector
191 :first-child $("p:first-child") All

elements that are the first child of their parent

Selector
192 :first-of-type $("p:first-of-type") All

elements that are the first

element of their parent

Selector
193 :last-child $("p:last-child") All

elements that are the last child of their parent

Selector
194 :last-of-type $("p:last-of-type") All

elements that are the last

element of their parent

Selector
195 :nth-child(n) $("p:nth-child(2)") All

elements that are the 2nd child of their parent

Selector
196 :nth-last-child(n) $("p:nth-last-child(2)") All

elements that are the 2nd child of their parent, counting from the last child

Selector
197 :nth-of-type(n) $("p:nth-of-type(2)") All

elements that are the 2nd

element of their parent

Selector
198 :nth-last-of-type(n) $("p:nth-last-of-type(2)") All

elements that are the 2nd

element of their parent, counting from the last child

Selector
199 :only-child $("p:only-child") All

elements that are the only child of their parent

Selector
200 :only-of-type $("p:only-of-type") All

elements that are the only child, of its type, of their parent

Selector
201 Selector
202 parent > child $("div > p") All

elements that are a direct child of a

element
Selector
203 parent descendant $("div p") All

elements that are descendants of a

element
Selector
204 element + next $("div + p") The

element that are next to each

elements
Selector
205 element ~ siblings $("div ~ p") All

elements that are siblings of a

element
Selector
206 Selector
207 :eq(index) $("ul li:eq(3)") The fourth element in a list (index starts at 0) Selector
208 :gt(no) $("ul li:gt(3)") List elements with an index greater than 3 Selector
209 :lt(no) $("ul li:lt(3)") List elements with an index less than 3 Selector
210 :not(selector) $("input:not(:empty)") All input elements that are not empty Selector
211 Selector
212 :header $(":header") All header elements

,

...

Selector
213 :animated $(":animated") All animated elements Selector
214 :focus $(":focus") The element that currently has focus Selector
215 :contains(text) $(":contains('Hello')") All elements which contains the text "Hello" Selector
216 :has(selector) $("div:has(p)") All
elements that have a

element

Selector
217 :empty $(":empty") All elements that are empty Selector
218 :parent $(":parent") All elements that are a parent of another element Selector
219 :hidden $("p:hidden") All hidden

elements

Selector
220 :visible $("table:visible") All visible tables Selector
221 :root $(":root") The document's root element Selector
222 :lang(language) $("p:lang(de)") All

elements with a lang attribute value starting with "de"

Selector
223 Selector
224 [attribute] $("[href]") All elements with a href attribute Selector
225 [attribute=value] $("[href='default.htm']") All elements with a href attribute value equal to "default.htm" Selector
226 [attribute!=value] $("[href!='default.htm']") All elements with a href attribute value not equal to "default.htm" Selector
227 [attribute$=value] $("[href$='.jpg']") All elements with a href attribute value ending with ".jpg" Selector
228 [attribute|=value] $("[title|='Tomorrow']") All elements with a title attribute value equal to 'Tomorrow', or starting with 'Tomorrow' followed by a hyphen Selector
229 [attribute^=value] $("[title^='Tom']") All elements with a title attribute value starting with "Tom" Selector
230 [attribute~=value] $("[title~='hello']") All elements with a title attribute value containing the specific word "hello" Selector
231 [attribute*=value] $("[title*='hello']") All elements with a title attribute value containing the word "hello" Selector
232 Selector
233 :input $(":input") All input elements Selector
234 :text $(":text") All input elements with type="text" Selector
235 :password $(":password") All input elements with type="password" Selector
236 :radio $(":radio") All input elements with type="radio" Selector
237 :checkbox $(":checkbox") All input elements with type="checkbox" Selector
238 :submit $(":submit") All input elements with type="submit" Selector
239 :reset $(":reset") All input elements with type="reset" Selector
240 :button $(":button") All input elements with type="button" Selector
241 :image $(":image") All input elements with type="image" Selector
242 :file $(":file") All input elements with type="file" Selector
243 :enabled $(":enabled") All enabled input elements Selector
244 :disabled $(":disabled") All disabled input elements Selector
245 :selected $(":selected") All selected input elements Selector
246 :checked $(":checked") All checked input elements Selector