jQuery Cheat Sheet

A Programming › jQuery cheat sheet in English by media_slave
9,169 views 3,071 downloads 3 Oct 2012 History
4.9 avg · 4 ratings

jQuery ajax([­opt])

data / type / url /dataType /success
timeout / complete / global / ifModified
proces­sData / cache / async / error / beforeSend / conten­tType
$("#­exa­mple_j button­"­).c­lic­k(f­unc­tion(){
var aaa = $("#­exa­mple_j input:­fir­st").val();
var bbb = $("#­exa­mple_j input:­las­t").v­al();
$.ajax({
type: "­POS­T",
url: "­aja­x/l­oad­/po­st.p­hp­",
data: ({a : aaa, b : bbb}),
success: functi­on(­dat­a){­$("#­exa­mple_j span").t­ex­t("Э’Ñ‹­Ð¿Ð­¾Ð»­Ð½Ð­µÐ½Ð¾! " + data);}
});

jQuery ready()

jQuery(docum­ent­).r­ead­y(f­unc­tion($) {
// Code using $ as usual goes here.
});

jQuery ajax

.ajax()
ajaxPr­efilter()
ajaxSetup()
.getJSON( url [, data] [, succes­s(data, textSt­atus, jqXHR)] )

Badges

Nice Cheat Sheet Good Cheat Sheet

Comments

No comments yet.

Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.