jQuery Cheat Sheet
by i3 Quest Inc (i3quest) via cheatography.com/341/cs/168/
General Functions Hierarchy
* All :contain Elements that contain the specified parent > Direct child elements specified
element Element s(text) text. child by "child" of elements specified
by "parent".
:eq(n) Element at index n within the
.class Class
matched set. ancestor Elements that are descendants
#id ID
descendant of a given ancestor.
:gt(n) Elements at an index greater than n
within the matched set. selector1, Combined results of all the
Attributes
selector2, specified selectors.
:lt(n) Elements at an index less than index
[name] Has Attribute selectorN
within the matched set.
[name|="value"] Contains Prefix (before :has(sel Elements which contain at least one prev + next Next elements matching "next"
hyphen (-)) that are immediately preceded
ector) element that matches the specified
by a sibling "prev".
[name*="value"] Contains selector.
[name~="value"] Contains Word :not(sel Elements that do not match the given prev ~ Sibling elements that follow after
siblings the "prev" element, have the
ector) selector.
[name^="value"] Starts With
same parent, and match the
:nth- Elements that are the nth-child of
[name$="value"] Ends With filtering "siblings" selector.
child() their parent.
[name="value"] Equals :first-child Elements that are the first child
:empty Elements that have no children
[name!="value"] Not Equal of their parent.
(including text nodes).
[name="v"] Multiple Attributes :last-child Elements that are the last child
:even Even elements, zero-indexed.
[name2="v2"] of their parent.
:first The first matched element.
:only-child Elements that are the only child
Controls :header Elements that are headers, like h1, of their parent.
h2, h3 and so on.
:button Button :parent Elements that are the parent of
:last The last matched element. another element, including text
:checkbox Checkbox
:odd Odd elements, zero-indexed. nodes.
:submit Submit
:text Text Element State
:password Password
:checked Checked
:radio Radio
:animated Animated
:reset Reset
:disabled Disabled
:file File
:enabled Enabled
:image Image
:focus Focused
:input input, textarea, select and button
:selected Selected
elements
:visible Visible
:hidden Hidden
By i3 Quest Inc (i3quest) Published 24th December, 2011. Sponsored by Readability-Score.com
cheatography.com/i3quest/ Last updated 24th December, 2011. Measure your website readability!
www.i3quest.com Page 1 of 1. https://readability-score.com