Beginner’s essential jQuery Cheat Sheet - WebsiteSetup
Beginner¡¯s essential
jQuery Cheat Sheet
Write less, and do more!
An essential tool for rapid web development.
#################
TABLE OF CONTENTS
Selectors
3
Attributes / CSS
5
Manipulation
6
Traversing
7
Events
8
Effects
10
AJAX
11
Core
12
2 of 13
SELECTORS
Basics
:target
*
.class
Content Filters
:contains()
element
:empty
#id
:has()
selector1, selectorN, ¡
:parent
Heirarchy
parent > child
Visibility Filters
:hidden
ancestor descendant
:visible
prev + next
prev ~ siblings
Attribute
[name|="value"]
Basic Filters
[name*="value"]
:animated
[name~="value"]
:eq()
[name$="value"]
:even
[name="value"]
:first
[name!="value"]
:gt()
[name^="value"]
:header
[name]
:lang()
[name="value"][name2="value2"]
:last
:lt()
Child Filters
:not()
:first-child
:odd
:first-of-type
:root
3 of 13
:last-child
Forms
:last-of-type
:button
:nth-child()
:checkbox
:nth-last-child()
:checked
:nth-last-of-type()
:disabled
:nth-of-type()
:enabled
:only-child
:focus
:only-of-type()
:file
length
:image
%
:input
border-box | padding-box |
content-box | no-clip
:password
:radio
:reset
:selected
:submit
:text
4 of 13
ATTRIBUTES / CSS
.offset()
.offsetParent()
Attributes
.attr()
.prop()
.position()
.scrollLeft()
.scrollTop()
.removeAttr()
.removeProp()
Data
.val()
jQuery.data()
.data()
CSS
.addClass()
.css()
jQuery.hasData()
jQuery.removeData()
.removeData()
jQuery.cssHooks
jQuery.cssNumber
jQuery.escapeSelector()
.hasClass()
.removeClass()
.toggleClass()
Dimensions
.height()
.innerHeight()
.innerWidth()
.outerHeight()
.outerWidth()
.width()
Offset
5 of 13
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.