0% found this document useful (0 votes)
67 views

Jquery Cheat Sheet: by Via

This document is a cheat sheet for jQuery selectors and functions, providing a overview of selector types for finding elements by class, ID, attributes and more as well as traversal functions for navigating the DOM tree. It also lists jQuery methods for manipulating elements and checking their state such as :checked, :animated, :enabled and more. The cheat sheet acts as a quick reference for common jQuery selections and manipulations.

Uploaded by

pbecic
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
67 views

Jquery Cheat Sheet: by Via

This document is a cheat sheet for jQuery selectors and functions, providing a overview of selector types for finding elements by class, ID, attributes and more as well as traversal functions for navigating the DOM tree. It also lists jQuery methods for manipulating elements and checking their state such as :checked, :animated, :enabled and more. The cheat sheet acts as a quick reference for common jQuery selections and manipulations.

Uploaded by

pbecic
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

jQuery Cheat Sheet

by i3 Quest Inc (i3quest) via cheatography.com/341/cs/168/

General Functions Hierarchy

* All :conta​in Elements that contain the specified parent > Direct child elements specified

element Element s​(text) text. child by "​chi​ld" of elements specified


by "​par​ent​".
:eq(n) Element at index n within the
.class Class
matched set. ancestor Elements that are descen​dants
#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|​="va​lue​"] Contains Prefix (before :has(s​el Elements which contain at least one prev + next Next elements matching "​nex​t"
hyphen (-)) that are immedi​ately preceded
e​ctor) element that matches the specified
by a sibling "​pre​v".
[name*​="va​lue​"] Contains selector.

[name~​="va​lue​"] Contains Word :not(s​el Elements that do not match the given prev ~ Sibling elements that follow after
siblings the "​pre​v" element, have the
e​ctor) selector.
[name^​="va​lue​"] Starts With
same parent, and match the
:nth- Elements that are the nth-child of
[name$​="va​lue​"] Ends With filtering "​sib​lin​gs" selector.
c​hild() their parent.
[name=​"​val​ue"] Equals :first​-child Elements that are the first child
:empty Elements that have no children
[name!​="va​lue​"] Not Equal of their parent.
(including text nodes).
[name=​"​v"] Multiple Attributes :last-​child Elements that are the last child
:even Even elements, zero-i​ndexed.
[​nam​e2=​"​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-i​ndexed. 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

You might also like