100% found this document useful (4 votes)
2K views

Jquery Cheat Sheet Page1

This document provides a summary of jQuery selectors, methods, and events. It lists common jQuery functions for manipulating the DOM, handling events, animating elements, and more. The summary is presented in table format with the jQuery functionality grouped into categories such as AJAX, DOM, events, effects and more.

Uploaded by

Joyhill
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (4 votes)
2K views

Jquery Cheat Sheet Page1

This document provides a summary of jQuery selectors, methods, and events. It lists common jQuery functions for manipulating the DOM, handling events, animating elements, and more. The summary is presented in table format with the jQuery functionality grouped into categories such as AJAX, DOM, events, effects and more.

Uploaded by

Joyhill
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

AJAX BASE CSS Effects Attributes Manipulation Traversing

$.get(url) $(expr) background() hide() href() after(html) add(expr)


$.get(url, params) $(elem) background(val) show() href(val) after(elem) add(els)
$.get(url, callback) $(elems) color() toggle() html() after(elems) add(el)
$.get(url, params, callback) $(fn) color(val) html(val) append(html) ancestors()
$.getIfModified(url) $(obj) css(name) Animations : id() append(elem) ancestors(expr)
$.getIfModified(url, params) $(expr, context) css(prop) animate(params, speed, callback) id(val) append(elems) children()
$.getIfModified(url, callback) each(fn) css(key, value) fadeIn(speed) name() appendTo(expr) children(expr)
$.getIfModified(url, params, callback) eq(pos) float() fadeIn(speed, callback) name(val) before(html) contains(str)
load(url, params, callback) get() float(val) fadeOut(speed) rel() before(elem) end()
rel(val)

DOM
loadIfModified(url, params, callback) get(num) height() fadeOut(speed, callback) before(elems) filter(expr)
$("p") gt(pos) height(val) fadeTo(speed, opacity) src() clone() filter(exprs)
$("#element_id").click(...) lengthlt(pos) left() fadeTo(speed, opacity, callback) src(val) empty() find(expr)
$(".class").click(...) size() left(val) hide(speed) title() insertAfter(expr) next()
title(val)
SAMPLE CODE

$(document.getElementById("el")).click(...) overflow() hide(speed, callback) insertBefore(expr) next(expr)


$(document).ready(...) overflow(val) show(speed) val() prepend(html) not(el)
$(window).load(...) position() show(speed, callback) val(val) prepend(elem) not(expr)
$(Context).find(...) position(val) slideDown(speed) prepend(elems) parent()
$("p",document).size(); top() slideDown(speed, callback) prependTo(expr) parent(expr)
$("p[a]").hide(); top(val) slideToggle(speed) remove() parents()
$("div",document.getElementById("el")) width() slideToggle(speed, callback) remove(expr) parents(expr)
$(xml.responseXML); width(val) slideUp(speed) wrap(html) prev()
$("title",xml.responseXML); slideUp(speed, callback) wrap(elem) prev(expr)
siblings()
Events siblings(expr)
bind(type, fn) keypress(fn) onedblclick(fn) resize(fn) unclick() unmousedown() addClass(class)
blur(fn) keyup() oneerror(fn) scroll() unclick(fn) unmousedown(fn) attr(name)
Browser keyup(fn) onefocus(fn) scroll(fn) undblclick() unmousemove() attr(prop)
error() load() onekeydown(fn) select() undblclick(fn) unmousemove(fn) attr(key, value)
change(fn) load(fn) onekeypress(fn) select(fn) unerror() unmouseout() removeAttr(name)
click(fn) Mouse onekeyup(fn) submit() unerror(fn) unmouseout(fn) removeClass(class)
dblclick() click() oneload(fn) submit(fn) unfocus() unmouseup() text()
dblclick(fn) mousedown() onemousedown(fn) toggle(even, odd) unfocus(fn) unmouseup(fn) toggleClass(class)
error(fn) mousedown(fn) onemousemove(fn) trigger(type) unkeydown() unresize()
JavaScript
focus() mousemove() onemouseout(fn) User Interface unkeydown(fn) unresize(fn)
focus(fn) mousemove(fn) onemouseup(fn) blur() unkeypress() unscroll() $.each(obj, fn)
Form mouseout() oneresize(fn) unbind() unkeypress(fn) unscroll(fn) $.extend(obj, prop)
onescroll(fn) unbind(type) unkeyup() $.grep(array, fn, inv)
change() mouseout(fn) unselect()
unbind(type, fn) unkeyup(fn) $.map(array, fn)
hover(over, out) mouseup() oneselect(fn) unselect(fn) $.merge(a, b)
Keyboard mouseup(fn) onesubmit(fn) unblur() unload() unsubmit() $.trim(str)
keydown() oneblur(fn) oneunload(fn) unblur(fn) unload() unsubmit(fn)
keydown(fn) onechange(fn) ready(fn) unchange() unload(fn) ununload() jQuery
keypress() oneclick(fn) resize() unchange(fn) unload(fn) ununload(fn) New.Wave.Javascript
09 02 06
Cheat.Sheet.09.03.06

You might also like