Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
docs:jquery:quickref [2011/11/07 20:50] – created billh | docs:jquery:quickref [2013/02/05 15:06] (current) – billh | ||
---|---|---|---|
Line 4: | Line 4: | ||
$(document.ready(function(){ | $(document.ready(function(){ | ||
// code goes here | // code goes here | ||
+ | }); | ||
+ | |||
+ | // prevent caching ajax requests | ||
+ | $.ajaxSetup({ | ||
+ | cache: false | ||
}); | }); | ||
Line 41: | Line 46: | ||
// prev(), next(), parent(), children(), nextAll(), prevAll() | // prev(), next(), parent(), children(), nextAll(), prevAll() | ||
- | $(' | + | $(' |
- | $(' | + | $(' |
- | $(' | + | $(' |
- | $(' | + | $(' |
- | $(' | + | $(' |
- | $(' | + | $(' |
+ | $(' | ||
// trim whitespace from ends of a string value | // trim whitespace from ends of a string value | ||
Line 55: | Line 62: | ||
// create html elements and add them to the page | // create html elements and add them to the page | ||
+ | // see also: append(), prepend(), prependTo(), | ||
+ | // wrap(), wrapAll(), wrapInner() | ||
$('< | $('< | ||
+ | |||
+ | // remove html elements from the page | ||
+ | $(' | ||
+ | |||
+ | // replacing elements | ||
+ | $(' | ||
+ | $('< | ||
+ | |||
+ | // cloning elements | ||
+ | $(' | ||
+ | |||
+ | // cloning elements, including events (passing true to clone()) | ||
+ | // notice that this one adds a clone of a button, then removes the original | ||
+ | $(' | ||
</ | </ | ||