From f2d4bffcc760eb03dae13a9d9e7f0bbd8ec33c1e Mon Sep 17 00:00:00 2001 From: John Resig Date: Wed, 9 Aug 2006 05:44:05 +0000 Subject: [PATCH] Added all the new documentation files. --- docs/doc.js | 58 + docs/gen.pl | 92 + docs/index.html | 18 + docs/jquery-docs-json.js | 4094 +++++++++++++++++++++++++++++++++++++ docs/jquery-docs-jsonp.js | 1 + docs/jsont.js | 58 + docs/pager.js | 93 + docs/style.css | 128 ++ docs/tooltip.js | 72 + 9 files changed, 4614 insertions(+) create mode 100644 docs/doc.js create mode 100644 docs/gen.pl create mode 100644 docs/index.html create mode 100644 docs/jquery-docs-json.js create mode 100644 docs/jquery-docs-jsonp.js create mode 100644 docs/jsont.js create mode 100644 docs/pager.js create mode 100644 docs/style.css create mode 100644 docs/tooltip.js diff --git a/docs/doc.js b/docs/doc.js new file mode 100644 index 000000000..d25611487 --- /dev/null +++ b/docs/doc.js @@ -0,0 +1,58 @@ +var rules = { + self: "{$}", + type: function(a){ /*console.log( a, types[a] );*/ return types[a]; }, + "self[*]": "
  • {$.type} " + + "{$.name}({$.params})" + + "
    {$.short}
    {$.desc}
    {$.examples}
  • ", + "self[*].params[*]": " {$.type} {$.name} ", + "self[*].examples[*]": "
    Example:

    {$.desc}

    {$.code}
    HTML:
    {$.before}
    Result:
    {$.result}
    " +}; + +var types = { + jQuery: "A jQuery object.", + Object: "A simple Javascript object. For example, it could be a String or a Number.", + String: "A string of characters.", + Number: "A numeric valid.", + Element: "The Javascript object representation of a DOM Element.", + Hash: "A Javascript object that contains key/value pairs in the form of properties and values.", + "Array<Element>": "An Array of DOM Elements.", + "Array<String>": "An Array of strings.", + Function: "A reference to a Javascript function." +}; + +function docsLoaded(docs) { + // Make sure that there are no private functions + docs = jQuery.grep( docs, "!a.private" ) + // Sort by function name + .sort(function(a,b){ + if ( a.name < b.name ) return -1; + else if ( a.name == b.name ) { + // Sort by number of parameters + if ( a.params.length < b.params.length ) return -1; + else if ( a.params.length == b.params.length ) return 0; + else return 1; + } else return 1; + }); + + // Put in the DOM, when it's ready + $(document).ready(function(){ + $("#docs").html( jsonT( docs, rules ) ); + setTimeout(function(){ + $("#docs").pager( function(){return this.firstChild.nextSibling.nextSibling.firstChild.innerHTML;}, function(s,e){ + $(this).html( jsonT( docs.slice( s, e ), rules ) ); + /*$(this).slideUp("slow",function(){ + this.style.opacity = 1; + this.style.width = ""; + this.style.height = ""; + $(this).html( jsonT( docs.slice( s, e ), rules ) ); + $(this).slideDown("slow"); + });*/ + $("span",this).filter("[@title]").addClass("tooltip").ToolTipDemo('#fff'); + $("a.name",this).click(function(){ + $("div.more,div.short",this.parentNode.parentNode).toggle(); + return false; + }); + }); + }, 13); + }); +} diff --git a/docs/gen.pl b/docs/gen.pl new file mode 100644 index 000000000..6320c3a9a --- /dev/null +++ b/docs/gen.pl @@ -0,0 +1,92 @@ +#!/usr/bin/perl + +use Data::Dumper; + +$Data::Dumper::Pair = ": "; +$Data::Dumper::Sortkeys = 1; +$Data::Dumper::Terse = 1; + +open( F, $ARGV[0] || "../jquery-svn.js" ); +my $f = join('', ); +close( F ); + +my @c; + +while ( $f =~ /\/\*\*\s*(.*?)\s*\*\//gs ) { + my $c = $1; + $c =~ s/^\s*\* ?//mg; + $c .= "!!!"; + my %ret; + + $ret{ 'params' } = []; + $ret{ 'examples' } = []; + + #while ( $c =~ s/^\@(\S+)\s*
    (.*?)<\/pre>\n//ms ) {
    +    #print "PARAM '$1' '$2'\n";
    +  #}
    +  while ( $c =~ s/^\@(\S+) *(.*?)(?=\n\@|!!!)//ms ) {
    +    my $n = $1;
    +    my $v = $2;
    +    $v =~ s/\s*$//g;
    +    $v =~ s/^\s*//g;
    +    $v =~ s/&/&/g;
    +    $v =~ s/(\s\s+)/" " x length($1)/eg;
    +    $v =~ s//>/g;
    +    $v =~ s/\n/
    /g; + $v = 1 if ( $v eq '' ); + + if ( $n eq 'param' ) { + my ( $type, $name, @v ) = split( /\s+/, $v ); + $v = { "type" => $type, "name" => $name, "desc" => join(' ', @v) }; + $n = "params"; + } elsif ( $n eq 'example' ) { + $v = { "code" => $v }; + $n = "examples"; + } + + if ( $n eq 'desc' || $n eq 'before' || $n eq 'after' || $n eq 'result' ) { + my @e = @{$ret{'examples'}}; + $e[ $#e ]{ $n } = $v; + } else { + + if ( exists $ret{ $n } ) { + if ( ref $ret{ $n } eq 'ARRAY' ) { + push( @{$ret{ $n }}, $v ); + } else { + $ret{ $n } = [ $ret{ $n }, $v ]; + } + } else { + $ret{ $n } = $v; + } + + } + } + + $c =~ s/\s*!!!$//; + $c =~ s/\n\n/

    /g; + $c =~ s/\n/ /g; + + $ret{ 'desc' } = $c; + + if ( $c =~ /^(.*?(\.|$))/s ) { + $ret{ 'short' } = $1; + #$ret{ 'short' } =~ s/
    / /g; + } + + #print "###\n" . $c . "\n###\n"; + + if ( exists $ret{ 'name' } ) { + push( @c, \%ret ); + } +} + +open( F, ">" . ($ARGV[1] || "jquery-docs-json.js") ); +print F Dumper( \@c ); +close( F ); + +$Data::Dumper::Indent = 0; + +open( F, ">" . ($ARGV[2] || "jquery-docs-jsonp.js") ); +print F "docsLoaded(" . Dumper( \@c ) . ")"; +close( F ); diff --git a/docs/index.html b/docs/index.html new file mode 100644 index 000000000..1edb678d4 --- /dev/null +++ b/docs/index.html @@ -0,0 +1,18 @@ + + + jQuery Documentation + + + + + + + + + +

    jQuery Docs » API

    +
      +
    • Loading...
    • +
    + + diff --git a/docs/jquery-docs-json.js b/docs/jquery-docs-json.js new file mode 100644 index 000000000..999f1c434 --- /dev/null +++ b/docs/jquery-docs-json.js @@ -0,0 +1,4094 @@ +[ + { + 'desc': 'The current SVN version of jQuery.', + 'examples': [], + 'name': 'jquery', + 'params': [], + 'private': 1, + 'property': 1, + 'short': 'The current SVN version of jQuery.', + 'type': 'String' + }, + { + 'desc': 'The number of elements currently matched.', + 'examples': [ + { + 'before': '<img src="test1.jpg"/> <img src="test2.jpg"/>', + 'code': '$("img").length;', + 'result': '2' + } + ], + 'name': 'length', + 'params': [], + 'property': 1, + 'short': 'The number of elements currently matched.', + 'type': 'Number' + }, + { + 'desc': 'The number of elements currently matched.', + 'examples': [ + { + 'before': '<img src="test1.jpg"/> <img src="test2.jpg"/>', + 'code': '$("img").size();', + 'result': '2' + } + ], + 'name': 'size', + 'params': [], + 'short': 'The number of elements currently matched.', + 'type': 'Number' + }, + { + 'desc': 'Access all matched elements. This serves as a backwards-compatible way of accessing all matched elements (other than the jQuery object itself, which is, in fact, an array of elements).', + 'examples': [ + { + 'before': '<img src="test1.jpg"/> <img src="test2.jpg"/>', + 'code': '$("img").get();', + 'result': '[ <img src="test1.jpg"/> <img src="test2.jpg"/> ]' + } + ], + 'name': 'get', + 'params': [], + 'short': 'Access all matched elements.', + 'type': 'Array<Element>' + }, + { + 'desc': 'Access a single matched element. num is used to access the numth element matched.', + 'examples': [ + { + 'before': '<img src="test1.jpg"/> <img src="test2.jpg"/>', + 'code': '$("img").get(1);', + 'result': '[ <img src="test1.jpg"/> ]' + } + ], + 'name': 'get', + 'params': [ + { + 'desc': 'Access the element in the <tt>num</tt>th position.', + 'name': 'num', + 'type': 'Number' + } + ], + 'short': 'Access a single matched element.', + 'type': 'Element' + }, + { + 'desc': 'Set the jQuery object to an array of elements.', + 'examples': [ + { + 'code': '$("img").get([ document.body ]);', + 'result': '$("img").get() == [ document.body ]' + } + ], + 'name': 'get', + 'params': [ + { + 'desc': 'An array of elements', + 'name': 'elems', + 'type': 'Elements' + } + ], + 'private': 1, + 'short': 'Set the jQuery object to an array of elements.', + 'type': 'jQuery' + }, + { + 'desc': 'Execute a function within the context of every matched element. This means that every time the passed-in function is executed (which is once for every element matched) the \'this\' keyword points to the specific element.

    Additionally, the function, when executed, is passed a single argument representing the position of the element in the matched set.', + 'examples': [ + { + 'before': '<img/> <img/>', + 'code': '$("img").each(function(){ this.src = "test.jpg"; });', + 'result': '<img src="test.jpg"/> <img src="test.jpg"/>' + } + ], + 'name': 'each', + 'params': [ + { + 'desc': 'A function to execute', + 'name': 'fn', + 'type': 'Function' + } + ], + 'short': 'Execute a function within the context of every matched element.', + 'type': 'jQuery' + }, + { + 'desc': 'Access a property on the first matched element. This method makes it easy to retreive a property value from the first matched element.', + 'examples': [ + { + 'before': '<img src="test.jpg"/>', + 'code': '$("img").attr("src");', + 'result': 'test.jpg' + } + ], + 'name': 'attr', + 'params': [ + { + 'desc': 'The name of the property to access.', + 'name': 'name', + 'type': 'String' + } + ], + 'short': 'Access a property on the first matched element.', + 'type': 'Object' + }, + { + 'desc': 'Set a hash of key/value object properties to all matched elements. This serves as the best way to set a large number of properties on all matched elements.', + 'examples': [ + { + 'before': '<img/>', + 'code': '$("img").attr({ src: "test.jpg", alt: "Test Image" });', + 'result': '<img src="test.jpg" alt="Test Image"/>' + } + ], + 'name': 'attr', + 'params': [ + { + 'desc': 'A set of key/value pairs to set as object properties.', + 'name': 'prop', + 'type': 'Hash' + } + ], + 'short': 'Set a hash of key/value object properties to all matched elements.', + 'type': 'jQuery' + }, + { + 'desc': 'Set a single property to a value, on all matched elements.', + 'examples': [ + { + 'before': '<img/>', + 'code': '$("img").attr("src","test.jpg");', + 'result': '<img src="test.jpg"/>' + } + ], + 'name': 'attr', + 'params': [ + { + 'desc': 'The name of the property to set.', + 'name': 'key', + 'type': 'String' + }, + { + 'desc': 'The value to set the property to.', + 'name': 'value', + 'type': 'Object' + } + ], + 'short': 'Set a single property to a value, on all matched elements.', + 'type': 'jQuery' + }, + { + 'desc': 'Access a style property on the first matched element. This method makes it easy to retreive a style property value from the first matched element.', + 'examples': [ + { + 'before': '<p style="color:red;">Test Paragraph.</p>', + 'code': '$("p").css("red");', + 'result': 'red' + } + ], + 'name': 'css', + 'params': [ + { + 'desc': 'The name of the property to access.', + 'name': 'name', + 'type': 'String' + } + ], + 'short': 'Access a style property on the first matched element.', + 'type': 'Object' + }, + { + 'desc': 'Set a hash of key/value style properties to all matched elements. This serves as the best way to set a large number of style properties on all matched elements.', + 'examples': [ + { + 'before': '<p>Test Paragraph.</p>', + 'code': '$("p").css({ color: "red", background: "blue" });', + 'result': '<p style="color:red; background:blue;">Test Paragraph.</p>' + } + ], + 'name': 'css', + 'params': [ + { + 'desc': 'A set of key/value pairs to set as style properties.', + 'name': 'prop', + 'type': 'Hash' + } + ], + 'short': 'Set a hash of key/value style properties to all matched elements.', + 'type': 'jQuery' + }, + { + 'desc': 'Set a single style property to a value, on all matched elements.', + 'examples': [ + { + 'before': '<p>Test Paragraph.</p>', + 'code': '$("p").css("color","red");', + 'result': '<p style="color:red;">Test Paragraph.</p>' + } + ], + 'name': 'css', + 'params': [ + { + 'desc': 'The name of the property to set.', + 'name': 'key', + 'type': 'String' + }, + { + 'desc': 'The value to set the property to.', + 'name': 'value', + 'type': 'Object' + } + ], + 'short': 'Set a single style property to a value, on all matched elements.', + 'type': 'jQuery' + }, + { + 'desc': 'Retreive the text contents of all matched elements. The result is a string that contains the combined text contents of all matched elements. This method works on both HTML and XML documents.', + 'examples': [ + { + 'before': '<p>Test Paragraph.</p>', + 'code': '$("p").text();', + 'result': 'Test Paragraph.' + } + ], + 'name': 'text', + 'params': [], + 'short': 'Retreive the text contents of all matched elements.', + 'type': 'String' + }, + { + 'any': [ + 'String html A string of HTML, that will be created on the fly and wrapped around the target.', + 'Element elem A DOM element that will be wrapped.', + 'Array<Element> elems An array of elements, the first of which will be wrapped.', + 'Object obj Any object, converted to a string, then a text node.' + ], + 'desc': 'Wrap all matched elements with a structure of other elements. This wrapping process is most useful for injecting additional stucture into a document, without ruining the original semantic qualities of a document.

    The way that is works is that it goes through the first element argument provided and finds the deepest element within the structure - it is that element that will en-wrap everything else.', + 'examples': [ + { + 'before': '<p>Test Paragraph.</p>', + 'code': '$("p").wrap("<div class=\'wrap\'></div>");', + 'result': '<div class=\'wrap\'><p>Test Paragraph.</p></div>' + } + ], + 'name': 'wrap', + 'params': [], + 'short': 'Wrap all matched elements with a structure of other elements.', + 'type': 'jQuery' + }, + { + 'any': [ + 'String html A string of HTML, that will be created on the fly and appended to the target.', + 'Element elem A DOM element that will be appended.', + 'Array<Element> elems An array of elements, all of which will be appended.', + 'Object obj Any object, converted to a string, then a text node.' + ], + 'desc': 'Append any number of elements to the inside of all matched elements. This operation is similar to doing an appendChild to all the specified elements, adding them into the document.', + 'examples': [ + { + 'before': '<p>I would like to say: </p>', + 'code': '$("p").append("<b>Hello</b>");', + 'result': '<p>I would like to say: <b>Hello</b></p>' + } + ], + 'name': 'append', + 'params': [], + 'short': 'Append any number of elements to the inside of all matched elements.', + 'type': 'jQuery' + }, + { + 'any': [ + 'String html A string of HTML, that will be created on the fly and prepended to the target.', + 'Element elem A DOM element that will be prepended.', + 'Array<Element> elems An array of elements, all of which will be prepended.', + 'Object obj Any object, converted to a string, then a text node.' + ], + 'desc': 'Prepend any number of elements to the inside of all matched elements. This operation is the best way to insert a set of elements inside, at the beginning, of all the matched element.', + 'examples': [ + { + 'before': '<p>, how are you?</p>', + 'code': '$("p").prepend("<b>Hello</b>");', + 'result': '<p><b>Hello</b>, how are you?</p>' + } + ], + 'name': 'prepend', + 'params': [], + 'short': 'Prepend any number of elements to the inside of all matched elements.', + 'type': 'jQuery' + }, + { + 'any': [ + 'String html A string of HTML, that will be created on the fly and inserted.', + 'Element elem A DOM element that will beinserted.', + 'Array<Element> elems An array of elements, all of which will be inserted.', + 'Object obj Any object, converted to a string, then a text node.' + ], + 'desc': 'Insert any number of elements before each of the matched elements.', + 'examples': [ + { + 'before': '<p>how are you?</p>', + 'code': '$("p").before("<b>Hello</b>");', + 'result': '<b>Hello</b><p>how are you?</p>' + } + ], + 'name': 'before', + 'params': [], + 'short': 'Insert any number of elements before each of the matched elements.', + 'type': 'jQuery' + }, + { + 'any': [ + 'String html A string of HTML, that will be created on the fly and inserted.', + 'Element elem A DOM element that will beinserted.', + 'Array<Element> elems An array of elements, all of which will be inserted.', + 'Object obj Any object, converted to a string, then a text node.' + ], + 'desc': 'Insert any number of elements after each of the matched elements.', + 'examples': [ + { + 'before': '<p>How are you?</p>', + 'code': '$("p").after("<p>I\'m doing fine.</p>");', + 'result': '<p>How are you?</p><p>I\'m doing fine.</p>' + } + ], + 'name': 'after', + 'params': [], + 'short': 'Insert any number of elements after each of the matched elements.', + 'type': 'jQuery' + }, + { + 'desc': 'End the most recent \'destructive\' operation, reverting the list of matched elements back to its previous state. After an end operation, the list of matched elements will revert to the last state of matched elements.', + 'examples': [ + { + 'before': '<p><span>Hello</span>, how are you?</p>', + 'code': '$("p").find("span").end();', + 'result': '$("p").find("span").end() == [ <p>...</p> ]' + } + ], + 'name': 'end', + 'params': [], + 'short': 'End the most recent \'destructive\' operation, reverting the list of matched elements back to its previous state.', + 'type': 'jQuery' + }, + { + 'desc': 'Searches for all elements that match the specified expression. This method is the optimal way of finding additional descendant elements with which to process.

    All searching is done using a jQuery expression. The expression can be written using CSS 1-3 Selector syntax, or basic XPath.', + 'examples': [ + { + 'before': '<p><span>Hello</span>, how are you?</p>', + 'code': '$("p").find("span");', + 'result': '$("p").find("span") == [ <span>Hello</span> ]' + } + ], + 'name': 'find', + 'params': [ + { + 'desc': 'An expression to search with.', + 'name': 'expr', + 'type': 'String' + } + ], + 'short': 'Searches for all elements that match the specified expression.', + 'type': 'jQuery' + }, + { + 'desc': 'Removes all elements from the set of matched elements that do not match the specified expression. This method is used to narrow down the results of a search.

    All searching is done using a jQuery expression. The expression can be written using CSS 1-3 Selector syntax, or basic XPath.', + 'examples': [ + { + 'before': '<p class="selected">Hello</p><p>How are you?</p>', + 'code': '$("p").filter(".selected")', + 'result': '$("p").filter(".selected") == [ <p class="selected">Hello</p> ]' + } + ], + 'name': 'filter', + 'params': [ + { + 'desc': 'An expression to search with.', + 'name': 'expr', + 'type': 'String' + } + ], + 'short': 'Removes all elements from the set of matched elements that do not match the specified expression.', + 'type': 'jQuery' + }, + { + 'desc': 'Removes all elements from the set of matched elements that do not match at least one of the expressions passed to the function. This method is used when you want to filter the set of matched elements through more than one expression.

    Elements will be retained in the jQuery object if they match at least one of the expressions passed.', + 'examples': [ + { + 'before': '<p>Hello</p><p>Hello Again</p><p class="selected">And Again</p>', + 'code': '$("p").filter([".selected", ":first"])', + 'result': '$("p").filter([".selected", ":first"]) == [ <p>Hello</p>, <p class="selected">And Again</p> ]' + } + ], + 'name': 'filter', + 'params': [ + { + 'desc': 'A set of expressions to evaluate against', + 'name': 'exprs', + 'type': 'Array<String>' + } + ], + 'short': 'Removes all elements from the set of matched elements that do not match at least one of the expressions passed to the function.', + 'type': 'jQuery' + }, + { + 'desc': 'Removes the specified Element from the set of matched elements. This method is used to remove a single Element from a jQuery object.', + 'examples': [ + { + 'before': '<p>Hello</p><p id="selected">Hello Again</p>', + 'code': '$("p").not( document.getElementById("selected") )', + 'result': '[ <p>Hello</p> ]' + } + ], + 'name': 'not', + 'params': [ + { + 'desc': 'An element to remove from the set', + 'name': 'el', + 'type': 'Element' + } + ], + 'short': 'Removes the specified Element from the set of matched elements.', + 'type': 'jQuery' + }, + { + 'desc': 'Removes elements matching the specified expression from the set of matched elements. This method is used to remove one or more elements from a jQuery object.', + 'examples': [ + { + 'before': '<p>Hello</p><p id="selected">Hello Again</p>', + 'code': '$("p").not("#selected")', + 'result': '[ <p>Hello</p> ]' + } + ], + 'name': 'not', + 'params': [ + { + 'desc': 'An expression with which to remove matching elements', + 'name': 'expr', + 'type': 'String' + } + ], + 'short': 'Removes elements matching the specified expression from the set of matched elements.', + 'type': 'jQuery' + }, + { + 'desc': 'Adds the elements matched by the expression to the jQuery object. This can be used to concatenate the result sets of two expressions.', + 'examples': [ + { + 'before': '<p>Hello</p><p><span>Hello Again</span></p>', + 'code': '$("p").add("span")', + 'result': '[ <p>Hello</p>, <span>Hello Again</span> ]' + } + ], + 'name': 'add', + 'params': [ + { + 'desc': 'An expression whose matched elements are added', + 'name': 'expr', + 'type': 'String' + } + ], + 'short': 'Adds the elements matched by the expression to the jQuery object.', + 'type': 'jQuery' + }, + { + 'desc': 'Adds each of the Elements in the array to the set of matched elements. This is used to add a set of Elements to a jQuery object.', + 'examples': [ + { + 'before': '<p>Hello</p><p><span id="a">Hello Again</span><span id="b">And Again</span></p>', + 'code': '$("p").add([document.getElementById("a"), document.getElementById("b")])', + 'result': '[ <p>Hello</p>, <span id="a">Hello Again</span>, <span id="b">And Again</span> ]' + } + ], + 'name': 'add', + 'params': [ + { + 'desc': 'An array of Elements to add', + 'name': 'els', + 'type': 'Array<Element>' + } + ], + 'short': 'Adds each of the Elements in the array to the set of matched elements.', + 'type': 'jQuery' + }, + { + 'desc': 'Adds a single Element to the set of matched elements. This is used to add a single Element to a jQuery object.', + 'examples': [ + { + 'before': '<p>Hello</p><p><span id="a">Hello Again</span></p>', + 'code': '$("p").add( document.getElementById("a") )', + 'result': '[ <p>Hello</p>, <span id="a">Hello Again</span> ]' + } + ], + 'name': 'add', + 'params': [ + { + 'desc': 'An Element to add', + 'name': 'el', + 'type': 'Element' + } + ], + 'short': 'Adds a single Element to the set of matched elements.', + 'type': 'jQuery' + }, + { + 'desc': '', + 'examples': [], + 'name': 'domManip', + 'params': [ + { + 'desc': '', + 'name': 'args', + 'type': 'Array' + }, + { + 'desc': '', + 'name': 'table', + 'type': 'Boolean' + }, + { + 'desc': '', + 'name': 'int', + 'type': 'Number' + }, + { + 'desc': 'The function doing the DOM manipulation.', + 'name': 'fn', + 'type': 'Function' + } + ], + 'private': 1, + 'short': '', + 'type': 'jQuery' + }, + { + 'desc': '', + 'examples': [], + 'name': 'pushStack', + 'params': [ + { + 'desc': '', + 'name': 'a', + 'type': 'Array' + }, + { + 'desc': '', + 'name': 'args', + 'type': 'Array' + } + ], + 'private': 1, + 'short': '', + 'type': 'jQuery' + }, + { + 'desc': '', + 'examples': [], + 'name': 'extend', + 'params': [ + { + 'desc': '', + 'name': 'obj', + 'type': 'Object' + }, + { + 'desc': '', + 'name': 'prop', + 'type': 'Object' + } + ], + 'private': 1, + 'short': '', + 'type': 'Object' + }, + { + 'desc': 'Extend one object with another, returning the original, modified, object. This is a great utility for simple inheritance.', + 'examples': [], + 'name': '$.extend', + 'params': [ + { + 'desc': 'The object to extend', + 'name': 'obj', + 'type': 'Object' + }, + { + 'desc': 'The object that will be merged into the first.', + 'name': 'prop', + 'type': 'Object' + } + ], + 'short': 'Extend one object with another, returning the original, modified, object.', + 'type': 'Object' + }, + { + 'desc': '', + 'examples': [], + 'name': 'init', + 'params': [], + 'private': 1, + 'short': '', + 'type': 'undefined' + }, + { + 'desc': 'A generic iterator function, which can be used to seemlessly iterate over both objects and arrays.', + 'examples': [], + 'name': '$.each', + 'params': [ + { + 'desc': 'The object, or array, to iterate over.', + 'name': 'obj', + 'type': 'Object' + }, + { + 'desc': 'The function that will be executed on every object.', + 'name': 'fn', + 'type': 'Object' + } + ], + 'short': 'A generic iterator function, which can be used to seemlessly iterate over both objects and arrays.', + 'type': 'Object' + }, + { + 'desc': 'Remove the whitespace from the beginning and end of a string.', + 'examples': [], + 'name': '$.trim', + 'params': [ + { + 'desc': 'The string to trim.', + 'name': 'str', + 'type': 'String' + } + ], + 'private': 1, + 'short': 'Remove the whitespace from the beginning and end of a string.', + 'type': 'String' + }, + { + 'desc': 'All ancestors of a given element.', + 'examples': [], + 'name': '$.parents', + 'params': [ + { + 'desc': 'The element to find the ancestors of.', + 'name': 'elem', + 'type': 'Element' + } + ], + 'private': 1, + 'short': 'All ancestors of a given element.', + 'type': 'Array<Element>' + }, + { + 'desc': 'All elements on a specified axis.', + 'examples': [], + 'name': '$.sibling', + 'params': [ + { + 'desc': 'The element to find all the siblings of (including itself).', + 'name': 'elem', + 'type': 'Element' + } + ], + 'private': 1, + 'short': 'All elements on a specified axis.', + 'type': 'Array' + }, + { + 'desc': 'Merge two arrays together, removing all duplicates.', + 'examples': [], + 'name': '$.merge', + 'params': [ + { + 'desc': 'The first array to merge.', + 'name': 'a', + 'type': 'Array' + }, + { + 'desc': 'The second array to merge.', + 'name': 'b', + 'type': 'Array' + } + ], + 'private': 1, + 'short': 'Merge two arrays together, removing all duplicates.', + 'type': 'Array' + }, + { + 'desc': 'Remove items that aren\'t matched in an array. The function passed in to this method will be passed two arguments: \'a\' (which is the array item) and \'i\' (which is the index of the item in the array).', + 'examples': [], + 'name': '$.grep', + 'params': [ + { + 'desc': 'The Array to find items in.', + 'name': 'array', + 'type': 'Array' + }, + { + 'desc': 'The function to process each item against.', + 'name': 'fn', + 'type': 'Function' + }, + { + 'desc': 'Invert the selection - select the opposite of the function.', + 'name': 'inv', + 'type': 'Boolean' + } + ], + 'private': 1, + 'short': 'Remove items that aren\'t matched in an array.', + 'type': 'Array' + }, + { + 'desc': 'Translate all items in array to another array of items. The translation function that is provided to this method is passed one argument: \'a\' (the item to be translated). If an array is returned, that array is mapped out and merged into the full array. Additionally, returning \'null\' or \'undefined\' will delete the item from the array. Both of these changes imply that the size of the array may not be the same size upon completion, as it was when it started.', + 'examples': [], + 'name': '$.map', + 'params': [ + { + 'desc': 'The Array to translate.', + 'name': 'array', + 'type': 'Array' + }, + { + 'desc': 'The function to process each item against.', + 'name': 'fn', + 'type': 'Function' + } + ], + 'private': 1, + 'short': 'Translate all items in array to another array of items.', + 'type': 'Array' + }, + { + 'desc': 'Append all of the matched elements to another, specified, set of elements. This operation is, essentially, the reverse of doing a regular $(A).append(B), in that instead of appending B to A, you\'re appending A to B.', + 'examples': [ + { + 'before': '<p>I would like to say: </p><div id="foo"></div>', + 'code': '$("p").appendTo("#foo");', + 'result': '<div id="foo"><p>I would like to say: </p></div>' + } + ], + 'name': 'appendTo', + 'params': [ + { + 'desc': 'A jQuery expression of elements to match.', + 'name': 'expr', + 'type': 'String' + } + ], + 'short': 'Append all of the matched elements to another, specified, set of elements.', + 'type': 'jQuery' + }, + { + 'desc': 'Prepend all of the matched elements to another, specified, set of elements. This operation is, essentially, the reverse of doing a regular $(A).prepend(B), in that instead of prepending B to A, you\'re prepending A to B.', + 'examples': [ + { + 'before': '<p>I would like to say: </p><div id="foo"><b>Hello</b></div>', + 'code': '$("p").prependTo("#foo");', + 'result': '<div id="foo"><p>I would like to say: </p><b>Hello</b></div>' + } + ], + 'name': 'prependTo', + 'params': [ + { + 'desc': 'A jQuery expression of elements to match.', + 'name': 'expr', + 'type': 'String' + } + ], + 'short': 'Prepend all of the matched elements to another, specified, set of elements.', + 'type': 'jQuery' + }, + { + 'desc': 'Insert all of the matched elements before another, specified, set of elements. This operation is, essentially, the reverse of doing a regular $(A).before(B), in that instead of inserting B before A, you\'re inserting A before B.', + 'examples': [ + { + 'before': '<div id="foo">Hello</div><p>I would like to say: </p>', + 'code': '$("p").insertBefore("#foo");', + 'result': '<p>I would like to say: </p><div id="foo">Hello</div>' + } + ], + 'name': 'insertBefore', + 'params': [ + { + 'desc': 'A jQuery expression of elements to match.', + 'name': 'expr', + 'type': 'String' + } + ], + 'short': 'Insert all of the matched elements before another, specified, set of elements.', + 'type': 'jQuery' + }, + { + 'desc': 'Insert all of the matched elements after another, specified, set of elements. This operation is, essentially, the reverse of doing a regular $(A).after(B), in that instead of inserting B after A, you\'re inserting A after B.', + 'examples': [ + { + 'before': '<p>I would like to say: </p><div id="foo">Hello</div>', + 'code': '$("p").insertAfter("#foo");', + 'result': '<div id="foo">Hello</div><p>I would like to say: </p>' + } + ], + 'name': 'insertAfter', + 'params': [ + { + 'desc': 'A jQuery expression of elements to match.', + 'name': 'expr', + 'type': 'String' + } + ], + 'short': 'Insert all of the matched elements after another, specified, set of elements.', + 'type': 'jQuery' + }, + { + 'desc': 'Get the current CSS width of the first matched element.', + 'examples': [ + { + 'before': '<p>This is just a test.</p>', + 'code': '$("p").width();', + 'result': '"300px"' + } + ], + 'name': 'width', + 'params': [], + 'short': 'Get the current CSS width of the first matched element.', + 'type': 'String' + }, + { + 'desc': 'Set the CSS width of every matched element. Be sure to include the "px" (or other unit of measurement) after the number that you specify, otherwise you might get strange results.', + 'examples': [ + { + 'before': '<p>This is just a test.</p>', + 'code': '$("p").width("20px");', + 'result': '<p style="width:20px;">This is just a test.</p>' + } + ], + 'name': 'width', + 'params': [ + { + 'desc': 'Set the CSS property to the specified value.', + 'name': 'val', + 'type': 'String' + } + ], + 'short': 'Set the CSS width of every matched element.', + 'type': 'jQuery' + }, + { + 'desc': 'Get the current CSS height of the first matched element.', + 'examples': [ + { + 'before': '<p>This is just a test.</p>', + 'code': '$("p").height();', + 'result': '"14px"' + } + ], + 'name': 'height', + 'params': [], + 'short': 'Get the current CSS height of the first matched element.', + 'type': 'String' + }, + { + 'desc': 'Set the CSS height of every matched element. Be sure to include the "px" (or other unit of measurement) after the number that you specify, otherwise you might get strange results.', + 'examples': [ + { + 'before': '<p>This is just a test.</p>', + 'code': '$("p").height("20px");', + 'result': '<p style="height:20px;">This is just a test.</p>' + } + ], + 'name': 'height', + 'params': [ + { + 'desc': 'Set the CSS property to the specified value.', + 'name': 'val', + 'type': 'String' + } + ], + 'short': 'Set the CSS height of every matched element.', + 'type': 'jQuery' + }, + { + 'desc': 'Get the current CSS top of the first matched element.', + 'examples': [ + { + 'before': '<p>This is just a test.</p>', + 'code': '$("p").top();', + 'result': '"0px"' + } + ], + 'name': 'top', + 'params': [], + 'short': 'Get the current CSS top of the first matched element.', + 'type': 'String' + }, + { + 'desc': 'Set the CSS top of every matched element. Be sure to include the "px" (or other unit of measurement) after the number that you specify, otherwise you might get strange results.', + 'examples': [ + { + 'before': '<p>This is just a test.</p>', + 'code': '$("p").top("20px");', + 'result': '<p style="top:20px;">This is just a test.</p>' + } + ], + 'name': 'top', + 'params': [ + { + 'desc': 'Set the CSS property to the specified value.', + 'name': 'val', + 'type': 'String' + } + ], + 'short': 'Set the CSS top of every matched element.', + 'type': 'jQuery' + }, + { + 'desc': 'Get the current CSS left of the first matched element.', + 'examples': [ + { + 'before': '<p>This is just a test.</p>', + 'code': '$("p").left();', + 'result': '"0px"' + } + ], + 'name': 'left', + 'params': [], + 'short': 'Get the current CSS left of the first matched element.', + 'type': 'String' + }, + { + 'desc': 'Set the CSS left of every matched element. Be sure to include the "px" (or other unit of measurement) after the number that you specify, otherwise you might get strange results.', + 'examples': [ + { + 'before': '<p>This is just a test.</p>', + 'code': '$("p").left("20px");', + 'result': '<p style="left:20px;">This is just a test.</p>' + } + ], + 'name': 'left', + 'params': [ + { + 'desc': 'Set the CSS property to the specified value.', + 'name': 'val', + 'type': 'String' + } + ], + 'short': 'Set the CSS left of every matched element.', + 'type': 'jQuery' + }, + { + 'desc': 'Get the current CSS position of the first matched element.', + 'examples': [ + { + 'before': '<p>This is just a test.</p>', + 'code': '$("p").position();', + 'result': '"static"' + } + ], + 'name': 'position', + 'params': [], + 'short': 'Get the current CSS position of the first matched element.', + 'type': 'String' + }, + { + 'desc': 'Set the CSS position of every matched element.', + 'examples': [ + { + 'before': '<p>This is just a test.</p>', + 'code': '$("p").position("relative");', + 'result': '<p style="position:relative;">This is just a test.</p>' + } + ], + 'name': 'position', + 'params': [ + { + 'desc': 'Set the CSS property to the specified value.', + 'name': 'val', + 'type': 'String' + } + ], + 'short': 'Set the CSS position of every matched element.', + 'type': 'jQuery' + }, + { + 'desc': 'Get the current CSS float of the first matched element.', + 'examples': [ + { + 'before': '<p>This is just a test.</p>', + 'code': '$("p").float();', + 'result': '"none"' + } + ], + 'name': 'float', + 'params': [], + 'short': 'Get the current CSS float of the first matched element.', + 'type': 'String' + }, + { + 'desc': 'Set the CSS float of every matched element.', + 'examples': [ + { + 'before': '<p>This is just a test.</p>', + 'code': '$("p").float("left");', + 'result': '<p style="float:left;">This is just a test.</p>' + } + ], + 'name': 'float', + 'params': [ + { + 'desc': 'Set the CSS property to the specified value.', + 'name': 'val', + 'type': 'String' + } + ], + 'short': 'Set the CSS float of every matched element.', + 'type': 'jQuery' + }, + { + 'desc': 'Get the current CSS overflow of the first matched element.', + 'examples': [ + { + 'before': '<p>This is just a test.</p>', + 'code': '$("p").overflow();', + 'result': '"none"' + } + ], + 'name': 'overflow', + 'params': [], + 'short': 'Get the current CSS overflow of the first matched element.', + 'type': 'String' + }, + { + 'desc': 'Set the CSS overflow of every matched element.', + 'examples': [ + { + 'before': '<p>This is just a test.</p>', + 'code': '$("p").overflow("auto");', + 'result': '<p style="overflow:auto;">This is just a test.</p>' + } + ], + 'name': 'overflow', + 'params': [ + { + 'desc': 'Set the CSS property to the specified value.', + 'name': 'val', + 'type': 'String' + } + ], + 'short': 'Set the CSS overflow of every matched element.', + 'type': 'jQuery' + }, + { + 'desc': 'Get the current CSS color of the first matched element.', + 'examples': [ + { + 'before': '<p>This is just a test.</p>', + 'code': '$("p").color();', + 'result': '"black"' + } + ], + 'name': 'color', + 'params': [], + 'short': 'Get the current CSS color of the first matched element.', + 'type': 'String' + }, + { + 'desc': 'Set the CSS color of every matched element.', + 'examples': [ + { + 'before': '<p>This is just a test.</p>', + 'code': '$("p").color("blue");', + 'result': '<p style="color:blue;">This is just a test.</p>' + } + ], + 'name': 'color', + 'params': [ + { + 'desc': 'Set the CSS property to the specified value.', + 'name': 'val', + 'type': 'String' + } + ], + 'short': 'Set the CSS color of every matched element.', + 'type': 'jQuery' + }, + { + 'desc': 'Get the current CSS background of the first matched element.', + 'examples': [ + { + 'before': '<p>This is just a test.</p>', + 'code': '$("p").background();', + 'result': '""' + } + ], + 'name': 'background', + 'params': [], + 'short': 'Get the current CSS background of the first matched element.', + 'type': 'String' + }, + { + 'desc': 'Set the CSS background of every matched element.', + 'examples': [ + { + 'before': '<p>This is just a test.</p>', + 'code': '$("p").background("blue");', + 'result': '<p style="background:blue;">This is just a test.</p>' + } + ], + 'name': 'background', + 'params': [ + { + 'desc': 'Set the CSS property to the specified value.', + 'name': 'val', + 'type': 'String' + } + ], + 'short': 'Set the CSS background of every matched element.', + 'type': 'jQuery' + }, + { + 'desc': 'Get the current value of the first matched element.', + 'examples': [ + { + 'before': '<input type="text" value="some text"/>', + 'code': '$("input").val();', + 'result': '"some text"' + } + ], + 'name': 'val', + 'params': [], + 'short': 'Get the current value of the first matched element.', + 'type': 'String' + }, + { + 'desc': 'Set the value of every matched element.', + 'examples': [ + { + 'before': '<input type="text" value="some text"/>', + 'code': '$("input").value("test");', + 'result': '<input type="text" value="test"/>' + } + ], + 'name': 'val', + 'params': [ + { + 'desc': 'Set the property to the specified value.', + 'name': 'val', + 'type': 'String' + } + ], + 'short': 'Set the value of every matched element.', + 'type': 'jQuery' + }, + { + 'desc': 'Get the html contents of the first matched element.', + 'examples': [ + { + 'before': '<div><input/></div>', + 'code': '$("div").html();', + 'result': '<input/>' + } + ], + 'name': 'html', + 'params': [], + 'short': 'Get the html contents of the first matched element.', + 'type': 'String' + }, + { + 'desc': 'Set the html contents of every matched element.', + 'examples': [ + { + 'before': '<div><input/></div>', + 'code': '$("div").html("<b>new stuff</b>");', + 'result': '<div><b>new stuff</b</div>' + } + ], + 'name': 'html', + 'params': [ + { + 'desc': 'Set the html contents to the specified value.', + 'name': 'val', + 'type': 'String' + } + ], + 'short': 'Set the html contents of every matched element.', + 'type': 'jQuery' + }, + { + 'desc': 'Get the current id of the first matched element.', + 'examples': [ + { + 'before': '<input type="text" id="test" value="some text"/>', + 'code': '$("input").id();', + 'result': '"test"' + } + ], + 'name': 'id', + 'params': [], + 'short': 'Get the current id of the first matched element.', + 'type': 'String' + }, + { + 'desc': 'Set the id of every matched element.', + 'examples': [ + { + 'before': '<input type="text" id="test" value="some text"/>', + 'code': '$("input").id("newid");', + 'result': '<input type="text" id="newid" value="some text"/>' + } + ], + 'name': 'id', + 'params': [ + { + 'desc': 'Set the property to the specified value.', + 'name': 'val', + 'type': 'String' + } + ], + 'short': 'Set the id of every matched element.', + 'type': 'jQuery' + }, + { + 'desc': 'Get the current title of the first matched element.', + 'examples': [ + { + 'before': '<img src="test.jpg" title="my image"/>', + 'code': '$("img").title();', + 'result': '"my image"' + } + ], + 'name': 'title', + 'params': [], + 'short': 'Get the current title of the first matched element.', + 'type': 'String' + }, + { + 'desc': 'Set the title of every matched element.', + 'examples': [ + { + 'before': '<img src="test.jpg" title="my image"/>', + 'code': '$("img").title("new title");', + 'result': '<img src="test.jpg" title="new image"/>' + } + ], + 'name': 'title', + 'params': [ + { + 'desc': 'Set the property to the specified value.', + 'name': 'val', + 'type': 'String' + } + ], + 'short': 'Set the title of every matched element.', + 'type': 'jQuery' + }, + { + 'desc': 'Get the current name of the first matched element.', + 'examples': [ + { + 'before': '<input type="text" name="username"/>', + 'code': '$("input").name();', + 'result': '"username"' + } + ], + 'name': 'name', + 'params': [], + 'short': 'Get the current name of the first matched element.', + 'type': 'String' + }, + { + 'desc': 'Set the name of every matched element.', + 'examples': [ + { + 'before': '<input type="text" name="username"/>', + 'code': '$("input").name("user");', + 'result': '<input type="text" name="user"/>' + } + ], + 'name': 'name', + 'params': [ + { + 'desc': 'Set the property to the specified value.', + 'name': 'val', + 'type': 'String' + } + ], + 'short': 'Set the name of every matched element.', + 'type': 'jQuery' + }, + { + 'desc': 'Get the current href of the first matched element.', + 'examples': [ + { + 'before': '<a href="test.html">my link</a>', + 'code': '$("a").href();', + 'result': '"test.html"' + } + ], + 'name': 'href', + 'params': [], + 'short': 'Get the current href of the first matched element.', + 'type': 'String' + }, + { + 'desc': 'Set the href of every matched element.', + 'examples': [ + { + 'before': '<a href="test.html">my link</a>', + 'code': '$("a").href("test2.html");', + 'result': '<a href="test2.html">my link</a>' + } + ], + 'name': 'href', + 'params': [ + { + 'desc': 'Set the property to the specified value.', + 'name': 'val', + 'type': 'String' + } + ], + 'short': 'Set the href of every matched element.', + 'type': 'jQuery' + }, + { + 'desc': 'Get the current src of the first matched element.', + 'examples': [ + { + 'before': '<img src="test.jpg" title="my image"/>', + 'code': '$("img").src();', + 'result': '"test.jpg"' + } + ], + 'name': 'src', + 'params': [], + 'short': 'Get the current src of the first matched element.', + 'type': 'String' + }, + { + 'desc': 'Set the src of every matched element.', + 'examples': [ + { + 'before': '<img src="test.jpg" title="my image"/>', + 'code': '$("img").src("test2.jpg");', + 'result': '<img src="test2.jpg" title="my image"/>' + } + ], + 'name': 'src', + 'params': [ + { + 'desc': 'Set the property to the specified value.', + 'name': 'val', + 'type': 'String' + } + ], + 'short': 'Set the src of every matched element.', + 'type': 'jQuery' + }, + { + 'desc': 'Get the current rel of the first matched element.', + 'examples': [ + { + 'before': '<a href="test.html" rel="nofollow">my link</a>', + 'code': '$("a").rel();', + 'result': '"nofollow"' + } + ], + 'name': 'rel', + 'params': [], + 'short': 'Get the current rel of the first matched element.', + 'type': 'String' + }, + { + 'desc': 'Set the rel of every matched element.', + 'examples': [ + { + 'before': '<a href="test.html">my link</a>', + 'code': '$("a").rel("nofollow");', + 'result': '<a href="test.html" rel="nofollow">my link</a>' + } + ], + 'name': 'rel', + 'params': [ + { + 'desc': 'Set the property to the specified value.', + 'name': 'val', + 'type': 'String' + } + ], + 'short': 'Set the rel of every matched element.', + 'type': 'jQuery' + }, + { + 'desc': 'Get a set of elements containing the unique parents of the matched set of elements.', + 'examples': [ + { + 'before': '<div><p>Hello</p><p>Hello</p></div>', + 'code': '$("p").parent()', + 'result': '[ <div><p>Hello</p><p>Hello</p></div> ]' + } + ], + 'name': 'parent', + 'params': [], + 'short': 'Get a set of elements containing the unique parents of the matched set of elements.', + 'type': 'jQuery' + }, + { + 'desc': 'Get a set of elements containing the unique parents of the matched set of elements, and filtered by an expression.', + 'examples': [ + { + 'before': '<div><p>Hello</p></div><div class="selected"><p>Hello Again</p></div>', + 'code': '$("p").parent(".selected")', + 'result': '[ <div class="selected"><p>Hello Again</p></div> ]' + } + ], + 'name': 'parent', + 'params': [ + { + 'desc': 'An expression to filter the parents with', + 'name': 'expr', + 'type': 'String' + } + ], + 'short': 'Get a set of elements containing the unique parents of the matched set of elements, and filtered by an expression.', + 'type': 'jQuery' + }, + { + 'desc': 'Get a set of elements containing the unique ancestors of the matched set of elements.', + 'examples': [ + { + 'before': '<html><body><div><p><span>Hello</span></p><span>Hello Again</span></div></body></html>', + 'code': '$("span").ancestors()', + 'result': '[ <body>...</body>, <div>...</div>, <p><span>Hello</span></p> ]' + } + ], + 'name': 'ancestors', + 'params': [], + 'short': 'Get a set of elements containing the unique ancestors of the matched set of elements.', + 'type': 'jQuery' + }, + { + 'desc': 'Get a set of elements containing the unique ancestors of the matched set of elements, and filtered by an expression.', + 'examples': [ + { + 'before': '<html><body><div><p><span>Hello</span></p><span>Hello Again</span></div></body></html>', + 'code': '$("span").ancestors("p")', + 'result': '[ <p><span>Hello</span></p> ]' + } + ], + 'name': 'ancestors', + 'params': [ + { + 'desc': 'An expression to filter the ancestors with', + 'name': 'expr', + 'type': 'String' + } + ], + 'short': 'Get a set of elements containing the unique ancestors of the matched set of elements, and filtered by an expression.', + 'type': 'jQuery' + }, + { + 'desc': 'Get a set of elements containing the unique ancestors of the matched set of elements.', + 'examples': [ + { + 'before': '<html><body><div><p><span>Hello</span></p><span>Hello Again</span></div></body></html>', + 'code': '$("span").ancestors()', + 'result': '[ <body>...</body>, <div>...</div>, <p><span>Hello</span></p> ]' + } + ], + 'name': 'parents', + 'params': [], + 'short': 'Get a set of elements containing the unique ancestors of the matched set of elements.', + 'type': 'jQuery' + }, + { + 'desc': 'Get a set of elements containing the unique ancestors of the matched set of elements, and filtered by an expression.', + 'examples': [ + { + 'before': '<html><body><div><p><span>Hello</span></p><span>Hello Again</span></div></body></html>', + 'code': '$("span").ancestors("p")', + 'result': '[ <p><span>Hello</span></p> ]' + } + ], + 'name': 'parents', + 'params': [ + { + 'desc': 'An expression to filter the ancestors with', + 'name': 'expr', + 'type': 'String' + } + ], + 'short': 'Get a set of elements containing the unique ancestors of the matched set of elements, and filtered by an expression.', + 'type': 'jQuery' + }, + { + 'desc': 'Get a set of elements containing the unique next siblings of each of the matched set of elements.

    It only returns the very next sibling, not all next siblings.', + 'examples': [ + { + 'before': '<p>Hello</p><p>Hello Again</p><div><span>And Again</span></div>', + 'code': '$("p").next()', + 'result': '[ <p>Hello Again</p>, <div><span>And Again</span></div> ]' + } + ], + 'name': 'next', + 'params': [], + 'short': 'Get a set of elements containing the unique next siblings of each of the matched set of elements.', + 'type': 'jQuery' + }, + { + 'desc': 'Get a set of elements containing the unique next siblings of each of the matched set of elements, and filtered by an expression.

    It only returns the very next sibling, not all next siblings.', + 'examples': [ + { + 'before': '<p>Hello</p><p class="selected">Hello Again</p><div><span>And Again</span></div>', + 'code': '$("p").next(".selected")', + 'result': '[ <p class="selected">Hello Again</p> ]' + } + ], + 'name': 'next', + 'params': [ + { + 'desc': 'An expression to filter the next Elements with', + 'name': 'expr', + 'type': 'String' + } + ], + 'short': 'Get a set of elements containing the unique next siblings of each of the matched set of elements, and filtered by an expression.', + 'type': 'jQuery' + }, + { + 'desc': 'Get a set of elements containing the unique previous siblings of each of the matched set of elements.

    It only returns the immediately previous sibling, not all previous siblings.', + 'examples': [ + { + 'before': '<p>Hello</p><div><span>Hello Again</span></div><p>And Again</p>', + 'code': '$("p").previous()', + 'result': '[ <div><span>Hello Again</span></div> ]' + } + ], + 'name': 'prev', + 'params': [], + 'short': 'Get a set of elements containing the unique previous siblings of each of the matched set of elements.', + 'type': 'jQuery' + }, + { + 'desc': 'Get a set of elements containing the unique previous siblings of each of the matched set of elements, and filtered by an expression.

    It only returns the immediately previous sibling, not all previous siblings.', + 'examples': [ + { + 'before': '<div><span>Hello</span></div><p class="selected">Hello Again</p><p>And Again</p>', + 'code': '$("p").previous(".selected")', + 'result': '[ <div><span>Hello</span></div> ]' + } + ], + 'name': 'prev', + 'params': [ + { + 'desc': 'An expression to filter the previous Elements with', + 'name': 'expr', + 'type': 'String' + } + ], + 'short': 'Get a set of elements containing the unique previous siblings of each of the matched set of elements, and filtered by an expression.', + 'type': 'jQuery' + }, + { + 'desc': 'Get a set of elements containing all of the unique siblings of each of the matched set of elements.', + 'examples': [ + { + 'before': '<p>Hello</p><div><span>Hello Again</span></div><p>And Again</p>', + 'code': '$("div").siblings()', + 'result': '[ <p>Hello</p>, <p>And Again</p> ]' + } + ], + 'name': 'siblings', + 'params': [], + 'short': 'Get a set of elements containing all of the unique siblings of each of the matched set of elements.', + 'type': 'jQuery' + }, + { + 'desc': 'Get a set of elements containing all of the unique siblings of each of the matched set of elements, and filtered by an expression.', + 'examples': [ + { + 'before': '<div><span>Hello</span></div><p class="selected">Hello Again</p><p>And Again</p>', + 'code': '$("div").siblings(".selected")', + 'result': '[ <p class="selected">Hello Again</p> ]' + } + ], + 'name': 'siblings', + 'params': [ + { + 'desc': 'An expression to filter the sibling Elements with', + 'name': 'expr', + 'type': 'String' + } + ], + 'short': 'Get a set of elements containing all of the unique siblings of each of the matched set of elements, and filtered by an expression.', + 'type': 'jQuery' + }, + { + 'desc': 'Get a set of elements containing all of the unique children of each of the matched set of elements.', + 'examples': [ + { + 'before': '<p>Hello</p><div><span>Hello Again</span></div><p>And Again</p>', + 'code': '$("div").children()', + 'result': '[ <span>Hello Again</span> ]' + } + ], + 'name': 'children', + 'params': [], + 'short': 'Get a set of elements containing all of the unique children of each of the matched set of elements.', + 'type': 'jQuery' + }, + { + 'desc': 'Get a set of elements containing all of the unique siblings of each of the matched set of elements, and filtered by an expression.', + 'examples': [ + { + 'before': '<div><span>Hello</span><p class="selected">Hello Again</p><p>And Again</p></div>', + 'code': '$("div").children(".selected")', + 'result': '[ <p class="selected">Hello Again</p> ]' + } + ], + 'name': 'children', + 'params': [ + { + 'desc': 'An expression to filter the child Elements with', + 'name': 'expr', + 'type': 'String' + } + ], + 'short': 'Get a set of elements containing all of the unique siblings of each of the matched set of elements, and filtered by an expression.', + 'type': 'jQuery' + }, + { + 'desc': 'Displays each of the set of matched elements if they are hidden.', + 'examples': [ + { + 'before': '<p style="display: none">Hello</p>', + 'code': '$("p").show()', + 'result': '[ <p style="display: block">Hello</p> ]' + } + ], + 'name': 'show', + 'params': [], + 'short': 'Displays each of the set of matched elements if they are hidden.', + 'type': 'jQuery' + }, + { + 'desc': 'Hides each of the set of matched elements if they are shown.', + 'examples': [ + { + 'before': '<p>Hello</p>', + 'code': '$("p").hide()', + 'result': '[ <p style="display: none">Hello</p> ]' + } + ], + 'name': 'hide', + 'params': [], + 'short': 'Hides each of the set of matched elements if they are shown.', + 'type': 'jQuery' + }, + { + 'desc': 'Toggles each of the set of matched elements. If they are shown, toggle makes them hidden. If they are hidden, toggle makes them shown.', + 'examples': [ + { + 'before': '<p>Hello</p><p style="display: none">Hello Again</p>', + 'code': '$("p").toggle()', + 'result': '[ <p style="display: none">Hello</p>, <p style="display: block">Hello Again</p> ]' + } + ], + 'name': 'toggle', + 'params': [], + 'short': 'Toggles each of the set of matched elements.', + 'type': 'jQuery' + }, + { + 'desc': 'Adds the specified class to each of the set of matched elements.', + 'examples': [ + { + 'before': '<p>Hello</p>', + 'code': '("p").addClass("selected")', + 'result': '[ <p class="selected">Hello</p> ]' + } + ], + 'name': 'addClass', + 'params': [ + { + 'desc': 'A CSS class to add to the elements', + 'name': 'class', + 'type': 'String' + } + ], + 'short': 'Adds the specified class to each of the set of matched elements.', + 'type': 'jQuery' + }, + { + 'desc': 'The opposite of addClass. Removes the specified class from the set of matched elements.', + 'examples': [ + { + 'before': '<p class="selected">Hello</p>', + 'code': '("p").removeClass("selected")', + 'result': '[ <p>Hello</p> ]' + } + ], + 'name': 'removeClass', + 'params': [ + { + 'desc': 'A CSS class to remove from the elements', + 'name': 'class', + 'type': 'String' + } + ], + 'short': 'The opposite of addClass.', + 'type': 'jQuery' + }, + { + 'desc': 'Adds the specified class if it is present. Remove it if it is not present.', + 'examples': [ + { + 'before': '<p>Hello</p><p class="selected">Hello Again</p>', + 'code': '("p").toggleClass("selected")', + 'result': '[ <p class="selected">Hello</p>, <p>Hello Again</p> ]' + } + ], + 'name': 'toggleClass', + 'params': [ + { + 'desc': 'A CSS class with which to toggle the elements', + 'name': 'class', + 'type': 'String' + } + ], + 'short': 'Adds the specified class if it is present.', + 'type': 'jQuery' + }, + { + 'desc': 'Removes all child nodes from the set of matched elements.', + 'examples': [ + { + 'before': '<p>Hello, <span>Person</span> <a href="#">and person</a></p>', + 'code': '("p").empty()', + 'result': '[ <p></p> ]' + } + ], + 'name': 'empty', + 'params': [], + 'short': 'Removes all child nodes from the set of matched elements.', + 'type': 'jQuery' + }, + { + 'desc': 'Binds a particular event (like click) to a each of a set of match elements.', + 'examples': [ + { + 'before': '<p>Hello</p>', + 'code': '$("p").bind( "click", function() { alert("Hello"); } )', + 'result': '[ <p>Hello</p> ]  Cancel a default action and prevent it from bubbling by returning false
    from your function.' + }, + { + 'code': '$("form").bind( "submit", function() { return false; } )  Cancel a default action by using the preventDefault method.' + }, + { + 'code': '$("form").bind( "submit", function() { e.preventDefault(); } )  Stop an event from bubbling by using the stopPropogation method.' + }, + { + 'code': '$("form").bind( "submit", function() { e.stopPropogation(); } )' + } + ], + 'name': 'bind', + 'params': [ + { + 'desc': 'An event type', + 'name': 'type', + 'type': 'String' + }, + { + 'desc': 'A function to bind to the event on each of the set of matched elements', + 'name': 'fn', + 'type': 'Function' + } + ], + 'short': 'Binds a particular event (like click) to a each of a set of match elements.', + 'type': 'jQuery' + }, + { + 'desc': 'The opposite of bind, removes a bound event from each of the matched elements. You must pass the identical function that was used in the original bind method.', + 'examples': [ + { + 'before': '<p onclick="alert(\'Hello\');">Hello</p>', + 'code': '$("p").unbind( "click", function() { alert("Hello"); } )', + 'result': '[ <p>Hello</p> ]' + } + ], + 'name': 'unbind', + 'params': [ + { + 'desc': 'An event type', + 'name': 'type', + 'type': 'String' + }, + { + 'desc': 'A function to unbind from the event on each of the set of matched elements', + 'name': 'fn', + 'type': 'Function' + } + ], + 'short': 'The opposite of bind, removes a bound event from each of the matched elements.', + 'type': 'jQuery' + }, + { + 'desc': 'Removes all bound events of a particular type from each of the matched elements.', + 'examples': [ + { + 'before': '<p onclick="alert(\'Hello\');">Hello</p>', + 'code': '$("p").unbind( "click" )', + 'result': '[ <p>Hello</p> ]' + } + ], + 'name': 'unbind', + 'params': [ + { + 'desc': 'An event type', + 'name': 'type', + 'type': 'String' + } + ], + 'short': 'Removes all bound events of a particular type from each of the matched elements.', + 'type': 'jQuery' + }, + { + 'desc': 'Removes all bound events from each of the matched elements.', + 'examples': [ + { + 'before': '<p onclick="alert(\'Hello\');">Hello</p>', + 'code': '$("p").unbind()', + 'result': '[ <p>Hello</p> ]' + } + ], + 'name': 'unbind', + 'params': [], + 'short': 'Removes all bound events from each of the matched elements.', + 'type': 'jQuery' + }, + { + 'desc': 'Trigger a type of event on every matched element.', + 'examples': [ + { + 'before': '<p click="alert(\'hello\')">Hello</p>', + 'code': '$("p").trigger("click")', + 'result': 'alert(\'hello\')' + } + ], + 'name': 'trigger', + 'params': [ + { + 'desc': 'An event type to trigger.', + 'name': 'type', + 'type': 'String' + } + ], + 'short': 'Trigger a type of event on every matched element.', + 'type': 'jQuery' + }, + { + 'desc': 'Toggle between two function calls every other click. Whenever a matched element is clicked, the first specified function is fired, when clicked again, the second is fired. All subsequent clicks continue to rotate through the two functions.', + 'examples': [ + { + 'code': '$("p").toggle(function(){   $(this).addClass("selected");
    },function(){   $(this).removeClass("selected");
    });' + } + ], + 'name': 'toggle', + 'params': [ + { + 'desc': 'The function to execute on every even click.', + 'name': 'even', + 'type': 'Function' + }, + { + 'desc': 'The function to execute on every odd click.', + 'name': 'odd', + 'type': 'Function' + } + ], + 'short': 'Toggle between two function calls every other click.', + 'type': 'jQuery' + }, + { + 'desc': 'A method for simulating hovering (moving the mouse on, and off, an object). This is a custom method which provides an \'in\' to a frequent task.

    Whenever the mouse cursor is moved over a matched element, the first specified function is fired. Whenever the mouse moves off of the element, the second specified function fires. Additionally, checks are in place to see if the mouse is still within the specified element itself (for example, an image inside of a div), and if it is, it will continue to \'hover\', and not move out (a common error in using a mouseout event handler).', + 'examples': [ + { + 'code': '$("p").hover(function(){   $(this).addClass("over");
    },function(){   $(this).addClass("out");
    });' + } + ], + 'name': 'hover', + 'params': [ + { + 'desc': 'The function to fire whenever the mouse is moved over a matched element.', + 'name': 'over', + 'type': 'Function' + }, + { + 'desc': 'The function to fire whenever the mouse is moved off of a matched element.', + 'name': 'out', + 'type': 'Function' + } + ], + 'short': 'A method for simulating hovering (moving the mouse on, and off, an object).', + 'type': 'jQuery' + }, + { + 'desc': 'Bind a function to be executed whenever the DOM is ready to be traversed and manipulated. This is probably the most important function included in the event module, as it can greatly improve the response times of your web applications.

    In a nutshell, this is a solid replacement for using window.onload, and attaching a function to that. By using this method, your bound Function will be called the instant the DOM is ready to be read and manipulated, which is exactly what 99.99% of all Javascript code needs to run.

    Please ensure you have no code in your onload event handler, otherwise $(document).ready() may not fire.', + 'examples': [ + { + 'code': '$(document).ready(function(){ Your code here... });' + } + ], + 'name': 'ready', + 'params': [ + { + 'desc': 'The function to be executed when the DOM is ready.', + 'name': 'fn', + 'type': 'Function' + } + ], + 'short': 'Bind a function to be executed whenever the DOM is ready to be traversed and manipulated.', + 'type': 'jQuery' + }, + { + 'desc': 'Bind a function to the blur event of each matched element.', + 'examples': [ + { + 'before': '<p>Hello</p>', + 'code': '$("p").blur( function() { alert("Hello"); } );', + 'result': '<p onblur="alert(\'Hello\');">Hello</p>' + } + ], + 'name': 'blur', + 'params': [ + { + 'desc': 'A function to bind to the blur event on each of the matched elements.', + 'name': 'fn', + 'type': 'Function' + } + ], + 'short': 'Bind a function to the blur event of each matched element.', + 'type': 'jQuery' + }, + { + 'desc': 'Trigger the blur event of each matched element. This causes all of the functions that have been bound to thet blur event to be executed.', + 'examples': [ + { + 'before': '<p onblur="alert(\'Hello\');">Hello</p>', + 'code': '$("p").blur();', + 'result': 'alert(\'Hello\');' + } + ], + 'name': 'blur', + 'params': [], + 'short': 'Trigger the blur event of each matched element.', + 'type': 'jQuery' + }, + { + 'desc': 'Bind a function to the blur event of each matched element, which will only be executed once. Unlike a call to the normal .blur() method, calling .oneblur() causes the bound function to be only executed the first time it is triggered, and never again (unless it is re-bound).', + 'examples': [ + { + 'before': '<p onblur="alert(\'Hello\');">Hello</p>', + 'code': '$("p").oneblur( function() { alert("Hello"); } );', + 'result': 'alert(\'Hello\'); // Only executed for the first blur' + } + ], + 'name': 'oneblur', + 'params': [ + { + 'desc': 'A function to bind to the blur event on each of the matched elements.', + 'name': 'fn', + 'type': 'Function' + } + ], + 'short': 'Bind a function to the blur event of each matched element, which will only be executed once.', + 'type': 'jQuery' + }, + { + 'desc': 'Removes a bound blur event from each of the matched elements. You must pass the identical function that was used in the original bind method.', + 'examples': [ + { + 'before': '<p onblur="myFunction">Hello</p>', + 'code': '$("p").unblur( myFunction );', + 'result': '<p>Hello</p>' + } + ], + 'name': 'unblur', + 'params': [ + { + 'desc': 'A function to unbind from the blur event on each of the matched elements.', + 'name': 'fn', + 'type': 'Function' + } + ], + 'short': 'Removes a bound blur event from each of the matched elements.', + 'type': 'jQuery' + }, + { + 'desc': 'Removes all bound blur events from each of the matched elements.', + 'examples': [ + { + 'before': '<p onblur="alert(\'Hello\');">Hello</p>', + 'code': '$("p").unblur();', + 'result': '<p>Hello</p>' + } + ], + 'name': 'unblur', + 'params': [], + 'short': 'Removes all bound blur events from each of the matched elements.', + 'type': 'jQuery' + }, + { + 'desc': 'Bind a function to the focus event of each matched element.', + 'examples': [ + { + 'before': '<p>Hello</p>', + 'code': '$("p").focus( function() { alert("Hello"); } );', + 'result': '<p onfocus="alert(\'Hello\');">Hello</p>' + } + ], + 'name': 'focus', + 'params': [ + { + 'desc': 'A function to bind to the focus event on each of the matched elements.', + 'name': 'fn', + 'type': 'Function' + } + ], + 'short': 'Bind a function to the focus event of each matched element.', + 'type': 'jQuery' + }, + { + 'desc': 'Trigger the focus event of each matched element. This causes all of the functions that have been bound to thet focus event to be executed.', + 'examples': [ + { + 'before': '<p onfocus="alert(\'Hello\');">Hello</p>', + 'code': '$("p").focus();', + 'result': 'alert(\'Hello\');' + } + ], + 'name': 'focus', + 'params': [], + 'short': 'Trigger the focus event of each matched element.', + 'type': 'jQuery' + }, + { + 'desc': 'Bind a function to the focus event of each matched element, which will only be executed once. Unlike a call to the normal .focus() method, calling .onefocus() causes the bound function to be only executed the first time it is triggered, and never again (unless it is re-bound).', + 'examples': [ + { + 'before': '<p onfocus="alert(\'Hello\');">Hello</p>', + 'code': '$("p").onefocus( function() { alert("Hello"); } );', + 'result': 'alert(\'Hello\'); // Only executed for the first focus' + } + ], + 'name': 'onefocus', + 'params': [ + { + 'desc': 'A function to bind to the focus event on each of the matched elements.', + 'name': 'fn', + 'type': 'Function' + } + ], + 'short': 'Bind a function to the focus event of each matched element, which will only be executed once.', + 'type': 'jQuery' + }, + { + 'desc': 'Removes a bound focus event from each of the matched elements. You must pass the identical function that was used in the original bind method.', + 'examples': [ + { + 'before': '<p onfocus="myFunction">Hello</p>', + 'code': '$("p").unfocus( myFunction );', + 'result': '<p>Hello</p>' + } + ], + 'name': 'unfocus', + 'params': [ + { + 'desc': 'A function to unbind from the focus event on each of the matched elements.', + 'name': 'fn', + 'type': 'Function' + } + ], + 'short': 'Removes a bound focus event from each of the matched elements.', + 'type': 'jQuery' + }, + { + 'desc': 'Removes all bound focus events from each of the matched elements.', + 'examples': [ + { + 'before': '<p onfocus="alert(\'Hello\');">Hello</p>', + 'code': '$("p").unfocus();', + 'result': '<p>Hello</p>' + } + ], + 'name': 'unfocus', + 'params': [], + 'short': 'Removes all bound focus events from each of the matched elements.', + 'type': 'jQuery' + }, + { + 'desc': 'Bind a function to the load event of each matched element.', + 'examples': [ + { + 'before': '<p>Hello</p>', + 'code': '$("p").load( function() { alert("Hello"); } );', + 'result': '<p onload="alert(\'Hello\');">Hello</p>' + } + ], + 'name': 'load', + 'params': [ + { + 'desc': 'A function to bind to the load event on each of the matched elements.', + 'name': 'fn', + 'type': 'Function' + } + ], + 'short': 'Bind a function to the load event of each matched element.', + 'type': 'jQuery' + }, + { + 'desc': 'Trigger the load event of each matched element. This causes all of the functions that have been bound to thet load event to be executed.', + 'examples': [ + { + 'before': '<p onload="alert(\'Hello\');">Hello</p>', + 'code': '$("p").load();', + 'result': 'alert(\'Hello\');' + } + ], + 'name': 'load', + 'params': [], + 'short': 'Trigger the load event of each matched element.', + 'type': 'jQuery' + }, + { + 'desc': 'Bind a function to the load event of each matched element, which will only be executed once. Unlike a call to the normal .load() method, calling .oneload() causes the bound function to be only executed the first time it is triggered, and never again (unless it is re-bound).', + 'examples': [ + { + 'before': '<p onload="alert(\'Hello\');">Hello</p>', + 'code': '$("p").oneload( function() { alert("Hello"); } );', + 'result': 'alert(\'Hello\'); // Only executed for the first load' + } + ], + 'name': 'oneload', + 'params': [ + { + 'desc': 'A function to bind to the load event on each of the matched elements.', + 'name': 'fn', + 'type': 'Function' + } + ], + 'short': 'Bind a function to the load event of each matched element, which will only be executed once.', + 'type': 'jQuery' + }, + { + 'desc': 'Removes a bound load event from each of the matched elements. You must pass the identical function that was used in the original bind method.', + 'examples': [ + { + 'before': '<p onload="myFunction">Hello</p>', + 'code': '$("p").unload( myFunction );', + 'result': '<p>Hello</p>' + } + ], + 'name': 'unload', + 'params': [ + { + 'desc': 'A function to unbind from the load event on each of the matched elements.', + 'name': 'fn', + 'type': 'Function' + } + ], + 'short': 'Removes a bound load event from each of the matched elements.', + 'type': 'jQuery' + }, + { + 'desc': 'Removes all bound load events from each of the matched elements.', + 'examples': [ + { + 'before': '<p onload="alert(\'Hello\');">Hello</p>', + 'code': '$("p").unload();', + 'result': '<p>Hello</p>' + } + ], + 'name': 'unload', + 'params': [], + 'short': 'Removes all bound load events from each of the matched elements.', + 'type': 'jQuery' + }, + { + 'desc': 'Bind a function to the resize event of each matched element.', + 'examples': [ + { + 'before': '<p>Hello</p>', + 'code': '$("p").resize( function() { alert("Hello"); } );', + 'result': '<p onresize="alert(\'Hello\');">Hello</p>' + } + ], + 'name': 'resize', + 'params': [ + { + 'desc': 'A function to bind to the resize event on each of the matched elements.', + 'name': 'fn', + 'type': 'Function' + } + ], + 'short': 'Bind a function to the resize event of each matched element.', + 'type': 'jQuery' + }, + { + 'desc': 'Trigger the resize event of each matched element. This causes all of the functions that have been bound to thet resize event to be executed.', + 'examples': [ + { + 'before': '<p onresize="alert(\'Hello\');">Hello</p>', + 'code': '$("p").resize();', + 'result': 'alert(\'Hello\');' + } + ], + 'name': 'resize', + 'params': [], + 'short': 'Trigger the resize event of each matched element.', + 'type': 'jQuery' + }, + { + 'desc': 'Bind a function to the resize event of each matched element, which will only be executed once. Unlike a call to the normal .resize() method, calling .oneresize() causes the bound function to be only executed the first time it is triggered, and never again (unless it is re-bound).', + 'examples': [ + { + 'before': '<p onresize="alert(\'Hello\');">Hello</p>', + 'code': '$("p").oneresize( function() { alert("Hello"); } );', + 'result': 'alert(\'Hello\'); // Only executed for the first resize' + } + ], + 'name': 'oneresize', + 'params': [ + { + 'desc': 'A function to bind to the resize event on each of the matched elements.', + 'name': 'fn', + 'type': 'Function' + } + ], + 'short': 'Bind a function to the resize event of each matched element, which will only be executed once.', + 'type': 'jQuery' + }, + { + 'desc': 'Removes a bound resize event from each of the matched elements. You must pass the identical function that was used in the original bind method.', + 'examples': [ + { + 'before': '<p onresize="myFunction">Hello</p>', + 'code': '$("p").unresize( myFunction );', + 'result': '<p>Hello</p>' + } + ], + 'name': 'unresize', + 'params': [ + { + 'desc': 'A function to unbind from the resize event on each of the matched elements.', + 'name': 'fn', + 'type': 'Function' + } + ], + 'short': 'Removes a bound resize event from each of the matched elements.', + 'type': 'jQuery' + }, + { + 'desc': 'Removes all bound resize events from each of the matched elements.', + 'examples': [ + { + 'before': '<p onresize="alert(\'Hello\');">Hello</p>', + 'code': '$("p").unresize();', + 'result': '<p>Hello</p>' + } + ], + 'name': 'unresize', + 'params': [], + 'short': 'Removes all bound resize events from each of the matched elements.', + 'type': 'jQuery' + }, + { + 'desc': 'Bind a function to the scroll event of each matched element.', + 'examples': [ + { + 'before': '<p>Hello</p>', + 'code': '$("p").scroll( function() { alert("Hello"); } );', + 'result': '<p onscroll="alert(\'Hello\');">Hello</p>' + } + ], + 'name': 'scroll', + 'params': [ + { + 'desc': 'A function to bind to the scroll event on each of the matched elements.', + 'name': 'fn', + 'type': 'Function' + } + ], + 'short': 'Bind a function to the scroll event of each matched element.', + 'type': 'jQuery' + }, + { + 'desc': 'Trigger the scroll event of each matched element. This causes all of the functions that have been bound to thet scroll event to be executed.', + 'examples': [ + { + 'before': '<p onscroll="alert(\'Hello\');">Hello</p>', + 'code': '$("p").scroll();', + 'result': 'alert(\'Hello\');' + } + ], + 'name': 'scroll', + 'params': [], + 'short': 'Trigger the scroll event of each matched element.', + 'type': 'jQuery' + }, + { + 'desc': 'Bind a function to the scroll event of each matched element, which will only be executed once. Unlike a call to the normal .scroll() method, calling .onescroll() causes the bound function to be only executed the first time it is triggered, and never again (unless it is re-bound).', + 'examples': [ + { + 'before': '<p onscroll="alert(\'Hello\');">Hello</p>', + 'code': '$("p").onescroll( function() { alert("Hello"); } );', + 'result': 'alert(\'Hello\'); // Only executed for the first scroll' + } + ], + 'name': 'onescroll', + 'params': [ + { + 'desc': 'A function to bind to the scroll event on each of the matched elements.', + 'name': 'fn', + 'type': 'Function' + } + ], + 'short': 'Bind a function to the scroll event of each matched element, which will only be executed once.', + 'type': 'jQuery' + }, + { + 'desc': 'Removes a bound scroll event from each of the matched elements. You must pass the identical function that was used in the original bind method.', + 'examples': [ + { + 'before': '<p onscroll="myFunction">Hello</p>', + 'code': '$("p").unscroll( myFunction );', + 'result': '<p>Hello</p>' + } + ], + 'name': 'unscroll', + 'params': [ + { + 'desc': 'A function to unbind from the scroll event on each of the matched elements.', + 'name': 'fn', + 'type': 'Function' + } + ], + 'short': 'Removes a bound scroll event from each of the matched elements.', + 'type': 'jQuery' + }, + { + 'desc': 'Removes all bound scroll events from each of the matched elements.', + 'examples': [ + { + 'before': '<p onscroll="alert(\'Hello\');">Hello</p>', + 'code': '$("p").unscroll();', + 'result': '<p>Hello</p>' + } + ], + 'name': 'unscroll', + 'params': [], + 'short': 'Removes all bound scroll events from each of the matched elements.', + 'type': 'jQuery' + }, + { + 'desc': 'Bind a function to the unload event of each matched element.', + 'examples': [ + { + 'before': '<p>Hello</p>', + 'code': '$("p").unload( function() { alert("Hello"); } );', + 'result': '<p onunload="alert(\'Hello\');">Hello</p>' + } + ], + 'name': 'unload', + 'params': [ + { + 'desc': 'A function to bind to the unload event on each of the matched elements.', + 'name': 'fn', + 'type': 'Function' + } + ], + 'short': 'Bind a function to the unload event of each matched element.', + 'type': 'jQuery' + }, + { + 'desc': 'Trigger the unload event of each matched element. This causes all of the functions that have been bound to thet unload event to be executed.', + 'examples': [ + { + 'before': '<p onunload="alert(\'Hello\');">Hello</p>', + 'code': '$("p").unload();', + 'result': 'alert(\'Hello\');' + } + ], + 'name': 'unload', + 'params': [], + 'short': 'Trigger the unload event of each matched element.', + 'type': 'jQuery' + }, + { + 'desc': 'Bind a function to the unload event of each matched element, which will only be executed once. Unlike a call to the normal .unload() method, calling .oneunload() causes the bound function to be only executed the first time it is triggered, and never again (unless it is re-bound).', + 'examples': [ + { + 'before': '<p onunload="alert(\'Hello\');">Hello</p>', + 'code': '$("p").oneunload( function() { alert("Hello"); } );', + 'result': 'alert(\'Hello\'); // Only executed for the first unload' + } + ], + 'name': 'oneunload', + 'params': [ + { + 'desc': 'A function to bind to the unload event on each of the matched elements.', + 'name': 'fn', + 'type': 'Function' + } + ], + 'short': 'Bind a function to the unload event of each matched element, which will only be executed once.', + 'type': 'jQuery' + }, + { + 'desc': 'Removes a bound unload event from each of the matched elements. You must pass the identical function that was used in the original bind method.', + 'examples': [ + { + 'before': '<p onunload="myFunction">Hello</p>', + 'code': '$("p").ununload( myFunction );', + 'result': '<p>Hello</p>' + } + ], + 'name': 'ununload', + 'params': [ + { + 'desc': 'A function to unbind from the unload event on each of the matched elements.', + 'name': 'fn', + 'type': 'Function' + } + ], + 'short': 'Removes a bound unload event from each of the matched elements.', + 'type': 'jQuery' + }, + { + 'desc': 'Removes all bound unload events from each of the matched elements.', + 'examples': [ + { + 'before': '<p onunload="alert(\'Hello\');">Hello</p>', + 'code': '$("p").ununload();', + 'result': '<p>Hello</p>' + } + ], + 'name': 'ununload', + 'params': [], + 'short': 'Removes all bound unload events from each of the matched elements.', + 'type': 'jQuery' + }, + { + 'desc': 'Bind a function to the click event of each matched element.', + 'examples': [ + { + 'before': '<p>Hello</p>', + 'code': '$("p").click( function() { alert("Hello"); } );', + 'result': '<p onclick="alert(\'Hello\');">Hello</p>' + } + ], + 'name': 'click', + 'params': [ + { + 'desc': 'A function to bind to the click event on each of the matched elements.', + 'name': 'fn', + 'type': 'Function' + } + ], + 'short': 'Bind a function to the click event of each matched element.', + 'type': 'jQuery' + }, + { + 'desc': 'Trigger the click event of each matched element. This causes all of the functions that have been bound to thet click event to be executed.', + 'examples': [ + { + 'before': '<p onclick="alert(\'Hello\');">Hello</p>', + 'code': '$("p").click();', + 'result': 'alert(\'Hello\');' + } + ], + 'name': 'click', + 'params': [], + 'short': 'Trigger the click event of each matched element.', + 'type': 'jQuery' + }, + { + 'desc': 'Bind a function to the click event of each matched element, which will only be executed once. Unlike a call to the normal .click() method, calling .oneclick() causes the bound function to be only executed the first time it is triggered, and never again (unless it is re-bound).', + 'examples': [ + { + 'before': '<p onclick="alert(\'Hello\');">Hello</p>', + 'code': '$("p").oneclick( function() { alert("Hello"); } );', + 'result': 'alert(\'Hello\'); // Only executed for the first click' + } + ], + 'name': 'oneclick', + 'params': [ + { + 'desc': 'A function to bind to the click event on each of the matched elements.', + 'name': 'fn', + 'type': 'Function' + } + ], + 'short': 'Bind a function to the click event of each matched element, which will only be executed once.', + 'type': 'jQuery' + }, + { + 'desc': 'Removes a bound click event from each of the matched elements. You must pass the identical function that was used in the original bind method.', + 'examples': [ + { + 'before': '<p onclick="myFunction">Hello</p>', + 'code': '$("p").unclick( myFunction );', + 'result': '<p>Hello</p>' + } + ], + 'name': 'unclick', + 'params': [ + { + 'desc': 'A function to unbind from the click event on each of the matched elements.', + 'name': 'fn', + 'type': 'Function' + } + ], + 'short': 'Removes a bound click event from each of the matched elements.', + 'type': 'jQuery' + }, + { + 'desc': 'Removes all bound click events from each of the matched elements.', + 'examples': [ + { + 'before': '<p onclick="alert(\'Hello\');">Hello</p>', + 'code': '$("p").unclick();', + 'result': '<p>Hello</p>' + } + ], + 'name': 'unclick', + 'params': [], + 'short': 'Removes all bound click events from each of the matched elements.', + 'type': 'jQuery' + }, + { + 'desc': 'Bind a function to the dblclick event of each matched element.', + 'examples': [ + { + 'before': '<p>Hello</p>', + 'code': '$("p").dblclick( function() { alert("Hello"); } );', + 'result': '<p ondblclick="alert(\'Hello\');">Hello</p>' + } + ], + 'name': 'dblclick', + 'params': [ + { + 'desc': 'A function to bind to the dblclick event on each of the matched elements.', + 'name': 'fn', + 'type': 'Function' + } + ], + 'short': 'Bind a function to the dblclick event of each matched element.', + 'type': 'jQuery' + }, + { + 'desc': 'Trigger the dblclick event of each matched element. This causes all of the functions that have been bound to thet dblclick event to be executed.', + 'examples': [ + { + 'before': '<p ondblclick="alert(\'Hello\');">Hello</p>', + 'code': '$("p").dblclick();', + 'result': 'alert(\'Hello\');' + } + ], + 'name': 'dblclick', + 'params': [], + 'short': 'Trigger the dblclick event of each matched element.', + 'type': 'jQuery' + }, + { + 'desc': 'Bind a function to the dblclick event of each matched element, which will only be executed once. Unlike a call to the normal .dblclick() method, calling .onedblclick() causes the bound function to be only executed the first time it is triggered, and never again (unless it is re-bound).', + 'examples': [ + { + 'before': '<p ondblclick="alert(\'Hello\');">Hello</p>', + 'code': '$("p").onedblclick( function() { alert("Hello"); } );', + 'result': 'alert(\'Hello\'); // Only executed for the first dblclick' + } + ], + 'name': 'onedblclick', + 'params': [ + { + 'desc': 'A function to bind to the dblclick event on each of the matched elements.', + 'name': 'fn', + 'type': 'Function' + } + ], + 'short': 'Bind a function to the dblclick event of each matched element, which will only be executed once.', + 'type': 'jQuery' + }, + { + 'desc': 'Removes a bound dblclick event from each of the matched elements. You must pass the identical function that was used in the original bind method.', + 'examples': [ + { + 'before': '<p ondblclick="myFunction">Hello</p>', + 'code': '$("p").undblclick( myFunction );', + 'result': '<p>Hello</p>' + } + ], + 'name': 'undblclick', + 'params': [ + { + 'desc': 'A function to unbind from the dblclick event on each of the matched elements.', + 'name': 'fn', + 'type': 'Function' + } + ], + 'short': 'Removes a bound dblclick event from each of the matched elements.', + 'type': 'jQuery' + }, + { + 'desc': 'Removes all bound dblclick events from each of the matched elements.', + 'examples': [ + { + 'before': '<p ondblclick="alert(\'Hello\');">Hello</p>', + 'code': '$("p").undblclick();', + 'result': '<p>Hello</p>' + } + ], + 'name': 'undblclick', + 'params': [], + 'short': 'Removes all bound dblclick events from each of the matched elements.', + 'type': 'jQuery' + }, + { + 'desc': 'Bind a function to the mousedown event of each matched element.', + 'examples': [ + { + 'before': '<p>Hello</p>', + 'code': '$("p").mousedown( function() { alert("Hello"); } );', + 'result': '<p onmousedown="alert(\'Hello\');">Hello</p>' + } + ], + 'name': 'mousedown', + 'params': [ + { + 'desc': 'A function to bind to the mousedown event on each of the matched elements.', + 'name': 'fn', + 'type': 'Function' + } + ], + 'short': 'Bind a function to the mousedown event of each matched element.', + 'type': 'jQuery' + }, + { + 'desc': 'Trigger the mousedown event of each matched element. This causes all of the functions that have been bound to thet mousedown event to be executed.', + 'examples': [ + { + 'before': '<p onmousedown="alert(\'Hello\');">Hello</p>', + 'code': '$("p").mousedown();', + 'result': 'alert(\'Hello\');' + } + ], + 'name': 'mousedown', + 'params': [], + 'short': 'Trigger the mousedown event of each matched element.', + 'type': 'jQuery' + }, + { + 'desc': 'Bind a function to the mousedown event of each matched element, which will only be executed once. Unlike a call to the normal .mousedown() method, calling .onemousedown() causes the bound function to be only executed the first time it is triggered, and never again (unless it is re-bound).', + 'examples': [ + { + 'before': '<p onmousedown="alert(\'Hello\');">Hello</p>', + 'code': '$("p").onemousedown( function() { alert("Hello"); } );', + 'result': 'alert(\'Hello\'); // Only executed for the first mousedown' + } + ], + 'name': 'onemousedown', + 'params': [ + { + 'desc': 'A function to bind to the mousedown event on each of the matched elements.', + 'name': 'fn', + 'type': 'Function' + } + ], + 'short': 'Bind a function to the mousedown event of each matched element, which will only be executed once.', + 'type': 'jQuery' + }, + { + 'desc': 'Removes a bound mousedown event from each of the matched elements. You must pass the identical function that was used in the original bind method.', + 'examples': [ + { + 'before': '<p onmousedown="myFunction">Hello</p>', + 'code': '$("p").unmousedown( myFunction );', + 'result': '<p>Hello</p>' + } + ], + 'name': 'unmousedown', + 'params': [ + { + 'desc': 'A function to unbind from the mousedown event on each of the matched elements.', + 'name': 'fn', + 'type': 'Function' + } + ], + 'short': 'Removes a bound mousedown event from each of the matched elements.', + 'type': 'jQuery' + }, + { + 'desc': 'Removes all bound mousedown events from each of the matched elements.', + 'examples': [ + { + 'before': '<p onmousedown="alert(\'Hello\');">Hello</p>', + 'code': '$("p").unmousedown();', + 'result': '<p>Hello</p>' + } + ], + 'name': 'unmousedown', + 'params': [], + 'short': 'Removes all bound mousedown events from each of the matched elements.', + 'type': 'jQuery' + }, + { + 'desc': 'Bind a function to the mouseup event of each matched element.', + 'examples': [ + { + 'before': '<p>Hello</p>', + 'code': '$("p").mouseup( function() { alert("Hello"); } );', + 'result': '<p onmouseup="alert(\'Hello\');">Hello</p>' + } + ], + 'name': 'mouseup', + 'params': [ + { + 'desc': 'A function to bind to the mouseup event on each of the matched elements.', + 'name': 'fn', + 'type': 'Function' + } + ], + 'short': 'Bind a function to the mouseup event of each matched element.', + 'type': 'jQuery' + }, + { + 'desc': 'Trigger the mouseup event of each matched element. This causes all of the functions that have been bound to thet mouseup event to be executed.', + 'examples': [ + { + 'before': '<p onmouseup="alert(\'Hello\');">Hello</p>', + 'code': '$("p").mouseup();', + 'result': 'alert(\'Hello\');' + } + ], + 'name': 'mouseup', + 'params': [], + 'short': 'Trigger the mouseup event of each matched element.', + 'type': 'jQuery' + }, + { + 'desc': 'Bind a function to the mouseup event of each matched element, which will only be executed once. Unlike a call to the normal .mouseup() method, calling .onemouseup() causes the bound function to be only executed the first time it is triggered, and never again (unless it is re-bound).', + 'examples': [ + { + 'before': '<p onmouseup="alert(\'Hello\');">Hello</p>', + 'code': '$("p").onemouseup( function() { alert("Hello"); } );', + 'result': 'alert(\'Hello\'); // Only executed for the first mouseup' + } + ], + 'name': 'onemouseup', + 'params': [ + { + 'desc': 'A function to bind to the mouseup event on each of the matched elements.', + 'name': 'fn', + 'type': 'Function' + } + ], + 'short': 'Bind a function to the mouseup event of each matched element, which will only be executed once.', + 'type': 'jQuery' + }, + { + 'desc': 'Removes a bound mouseup event from each of the matched elements. You must pass the identical function that was used in the original bind method.', + 'examples': [ + { + 'before': '<p onmouseup="myFunction">Hello</p>', + 'code': '$("p").unmouseup( myFunction );', + 'result': '<p>Hello</p>' + } + ], + 'name': 'unmouseup', + 'params': [ + { + 'desc': 'A function to unbind from the mouseup event on each of the matched elements.', + 'name': 'fn', + 'type': 'Function' + } + ], + 'short': 'Removes a bound mouseup event from each of the matched elements.', + 'type': 'jQuery' + }, + { + 'desc': 'Removes all bound mouseup events from each of the matched elements.', + 'examples': [ + { + 'before': '<p onmouseup="alert(\'Hello\');">Hello</p>', + 'code': '$("p").unmouseup();', + 'result': '<p>Hello</p>' + } + ], + 'name': 'unmouseup', + 'params': [], + 'short': 'Removes all bound mouseup events from each of the matched elements.', + 'type': 'jQuery' + }, + { + 'desc': 'Bind a function to the mousemove event of each matched element.', + 'examples': [ + { + 'before': '<p>Hello</p>', + 'code': '$("p").mousemove( function() { alert("Hello"); } );', + 'result': '<p onmousemove="alert(\'Hello\');">Hello</p>' + } + ], + 'name': 'mousemove', + 'params': [ + { + 'desc': 'A function to bind to the mousemove event on each of the matched elements.', + 'name': 'fn', + 'type': 'Function' + } + ], + 'short': 'Bind a function to the mousemove event of each matched element.', + 'type': 'jQuery' + }, + { + 'desc': 'Trigger the mousemove event of each matched element. This causes all of the functions that have been bound to thet mousemove event to be executed.', + 'examples': [ + { + 'before': '<p onmousemove="alert(\'Hello\');">Hello</p>', + 'code': '$("p").mousemove();', + 'result': 'alert(\'Hello\');' + } + ], + 'name': 'mousemove', + 'params': [], + 'short': 'Trigger the mousemove event of each matched element.', + 'type': 'jQuery' + }, + { + 'desc': 'Bind a function to the mousemove event of each matched element, which will only be executed once. Unlike a call to the normal .mousemove() method, calling .onemousemove() causes the bound function to be only executed the first time it is triggered, and never again (unless it is re-bound).', + 'examples': [ + { + 'before': '<p onmousemove="alert(\'Hello\');">Hello</p>', + 'code': '$("p").onemousemove( function() { alert("Hello"); } );', + 'result': 'alert(\'Hello\'); // Only executed for the first mousemove' + } + ], + 'name': 'onemousemove', + 'params': [ + { + 'desc': 'A function to bind to the mousemove event on each of the matched elements.', + 'name': 'fn', + 'type': 'Function' + } + ], + 'short': 'Bind a function to the mousemove event of each matched element, which will only be executed once.', + 'type': 'jQuery' + }, + { + 'desc': 'Removes a bound mousemove event from each of the matched elements. You must pass the identical function that was used in the original bind method.', + 'examples': [ + { + 'before': '<p onmousemove="myFunction">Hello</p>', + 'code': '$("p").unmousemove( myFunction );', + 'result': '<p>Hello</p>' + } + ], + 'name': 'unmousemove', + 'params': [ + { + 'desc': 'A function to unbind from the mousemove event on each of the matched elements.', + 'name': 'fn', + 'type': 'Function' + } + ], + 'short': 'Removes a bound mousemove event from each of the matched elements.', + 'type': 'jQuery' + }, + { + 'desc': 'Removes all bound mousemove events from each of the matched elements.', + 'examples': [ + { + 'before': '<p onmousemove="alert(\'Hello\');">Hello</p>', + 'code': '$("p").unmousemove();', + 'result': '<p>Hello</p>' + } + ], + 'name': 'unmousemove', + 'params': [], + 'short': 'Removes all bound mousemove events from each of the matched elements.', + 'type': 'jQuery' + }, + { + 'desc': 'Bind a function to the mouseover event of each matched element.', + 'examples': [ + { + 'before': '<p>Hello</p>', + 'code': '$("p").mouseover( function() { alert("Hello"); } );', + 'result': '<p onmouseover="alert(\'Hello\');">Hello</p>' + } + ], + 'name': 'mouseover', + 'params': [ + { + 'desc': 'A function to bind to the mouseover event on each of the matched elements.', + 'name': 'fn', + 'type': 'Function' + } + ], + 'short': 'Bind a function to the mouseover event of each matched element.', + 'type': 'jQuery' + }, + { + 'desc': 'Trigger the mouseover event of each matched element. This causes all of the functions that have been bound to thet mouseover event to be executed.', + 'examples': [ + { + 'before': '<p onmouseover="alert(\'Hello\');">Hello</p>', + 'code': '$("p").mouseover();', + 'result': 'alert(\'Hello\');' + } + ], + 'name': 'mouseover', + 'params': [], + 'short': 'Trigger the mouseover event of each matched element.', + 'type': 'jQuery' + }, + { + 'desc': 'Bind a function to the mouseover event of each matched element, which will only be executed once. Unlike a call to the normal .mouseover() method, calling .onemouseover() causes the bound function to be only executed the first time it is triggered, and never again (unless it is re-bound).', + 'examples': [ + { + 'before': '<p onmouseover="alert(\'Hello\');">Hello</p>', + 'code': '$("p").onemouseover( function() { alert("Hello"); } );', + 'result': 'alert(\'Hello\'); // Only executed for the first mouseover' + } + ], + 'name': 'onemouseover', + 'params': [ + { + 'desc': 'A function to bind to the mouseover event on each of the matched elements.', + 'name': 'fn', + 'type': 'Function' + } + ], + 'short': 'Bind a function to the mouseover event of each matched element, which will only be executed once.', + 'type': 'jQuery' + }, + { + 'desc': 'Removes a bound mouseover event from each of the matched elements. You must pass the identical function that was used in the original bind method.', + 'examples': [ + { + 'before': '<p onmouseover="myFunction">Hello</p>', + 'code': '$("p").unmouseover( myFunction );', + 'result': '<p>Hello</p>' + } + ], + 'name': 'unmouseover', + 'params': [ + { + 'desc': 'A function to unbind from the mouseover event on each of the matched elements.', + 'name': 'fn', + 'type': 'Function' + } + ], + 'short': 'Removes a bound mouseover event from each of the matched elements.', + 'type': 'jQuery' + }, + { + 'desc': 'Removes all bound mouseover events from each of the matched elements.', + 'examples': [ + { + 'before': '<p onmouseover="alert(\'Hello\');">Hello</p>', + 'code': '$("p").unmouseover();', + 'result': '<p>Hello</p>' + } + ], + 'name': 'unmouseover', + 'params': [], + 'short': 'Removes all bound mouseover events from each of the matched elements.', + 'type': 'jQuery' + }, + { + 'desc': 'Bind a function to the mouseout event of each matched element.', + 'examples': [ + { + 'before': '<p>Hello</p>', + 'code': '$("p").mouseout( function() { alert("Hello"); } );', + 'result': '<p onmouseout="alert(\'Hello\');">Hello</p>' + } + ], + 'name': 'mouseout', + 'params': [ + { + 'desc': 'A function to bind to the mouseout event on each of the matched elements.', + 'name': 'fn', + 'type': 'Function' + } + ], + 'short': 'Bind a function to the mouseout event of each matched element.', + 'type': 'jQuery' + }, + { + 'desc': 'Trigger the mouseout event of each matched element. This causes all of the functions that have been bound to thet mouseout event to be executed.', + 'examples': [ + { + 'before': '<p onmouseout="alert(\'Hello\');">Hello</p>', + 'code': '$("p").mouseout();', + 'result': 'alert(\'Hello\');' + } + ], + 'name': 'mouseout', + 'params': [], + 'short': 'Trigger the mouseout event of each matched element.', + 'type': 'jQuery' + }, + { + 'desc': 'Bind a function to the mouseout event of each matched element, which will only be executed once. Unlike a call to the normal .mouseout() method, calling .onemouseout() causes the bound function to be only executed the first time it is triggered, and never again (unless it is re-bound).', + 'examples': [ + { + 'before': '<p onmouseout="alert(\'Hello\');">Hello</p>', + 'code': '$("p").onemouseout( function() { alert("Hello"); } );', + 'result': 'alert(\'Hello\'); // Only executed for the first mouseout' + } + ], + 'name': 'onemouseout', + 'params': [ + { + 'desc': 'A function to bind to the mouseout event on each of the matched elements.', + 'name': 'fn', + 'type': 'Function' + } + ], + 'short': 'Bind a function to the mouseout event of each matched element, which will only be executed once.', + 'type': 'jQuery' + }, + { + 'desc': 'Removes a bound mouseout event from each of the matched elements. You must pass the identical function that was used in the original bind method.', + 'examples': [ + { + 'before': '<p onmouseout="myFunction">Hello</p>', + 'code': '$("p").unmouseout( myFunction );', + 'result': '<p>Hello</p>' + } + ], + 'name': 'unmouseout', + 'params': [ + { + 'desc': 'A function to unbind from the mouseout event on each of the matched elements.', + 'name': 'fn', + 'type': 'Function' + } + ], + 'short': 'Removes a bound mouseout event from each of the matched elements.', + 'type': 'jQuery' + }, + { + 'desc': 'Removes all bound mouseout events from each of the matched elements.', + 'examples': [ + { + 'before': '<p onmouseout="alert(\'Hello\');">Hello</p>', + 'code': '$("p").unmouseout();', + 'result': '<p>Hello</p>' + } + ], + 'name': 'unmouseout', + 'params': [], + 'short': 'Removes all bound mouseout events from each of the matched elements.', + 'type': 'jQuery' + }, + { + 'desc': 'Bind a function to the change event of each matched element.', + 'examples': [ + { + 'before': '<p>Hello</p>', + 'code': '$("p").change( function() { alert("Hello"); } );', + 'result': '<p onchange="alert(\'Hello\');">Hello</p>' + } + ], + 'name': 'change', + 'params': [ + { + 'desc': 'A function to bind to the change event on each of the matched elements.', + 'name': 'fn', + 'type': 'Function' + } + ], + 'short': 'Bind a function to the change event of each matched element.', + 'type': 'jQuery' + }, + { + 'desc': 'Trigger the change event of each matched element. This causes all of the functions that have been bound to thet change event to be executed.', + 'examples': [ + { + 'before': '<p onchange="alert(\'Hello\');">Hello</p>', + 'code': '$("p").change();', + 'result': 'alert(\'Hello\');' + } + ], + 'name': 'change', + 'params': [], + 'short': 'Trigger the change event of each matched element.', + 'type': 'jQuery' + }, + { + 'desc': 'Bind a function to the change event of each matched element, which will only be executed once. Unlike a call to the normal .change() method, calling .onechange() causes the bound function to be only executed the first time it is triggered, and never again (unless it is re-bound).', + 'examples': [ + { + 'before': '<p onchange="alert(\'Hello\');">Hello</p>', + 'code': '$("p").onechange( function() { alert("Hello"); } );', + 'result': 'alert(\'Hello\'); // Only executed for the first change' + } + ], + 'name': 'onechange', + 'params': [ + { + 'desc': 'A function to bind to the change event on each of the matched elements.', + 'name': 'fn', + 'type': 'Function' + } + ], + 'short': 'Bind a function to the change event of each matched element, which will only be executed once.', + 'type': 'jQuery' + }, + { + 'desc': 'Removes a bound change event from each of the matched elements. You must pass the identical function that was used in the original bind method.', + 'examples': [ + { + 'before': '<p onchange="myFunction">Hello</p>', + 'code': '$("p").unchange( myFunction );', + 'result': '<p>Hello</p>' + } + ], + 'name': 'unchange', + 'params': [ + { + 'desc': 'A function to unbind from the change event on each of the matched elements.', + 'name': 'fn', + 'type': 'Function' + } + ], + 'short': 'Removes a bound change event from each of the matched elements.', + 'type': 'jQuery' + }, + { + 'desc': 'Removes all bound change events from each of the matched elements.', + 'examples': [ + { + 'before': '<p onchange="alert(\'Hello\');">Hello</p>', + 'code': '$("p").unchange();', + 'result': '<p>Hello</p>' + } + ], + 'name': 'unchange', + 'params': [], + 'short': 'Removes all bound change events from each of the matched elements.', + 'type': 'jQuery' + }, + { + 'desc': 'Bind a function to the reset event of each matched element.', + 'examples': [ + { + 'before': '<p>Hello</p>', + 'code': '$("p").reset( function() { alert("Hello"); } );', + 'result': '<p onreset="alert(\'Hello\');">Hello</p>' + } + ], + 'name': 'reset', + 'params': [ + { + 'desc': 'A function to bind to the reset event on each of the matched elements.', + 'name': 'fn', + 'type': 'Function' + } + ], + 'short': 'Bind a function to the reset event of each matched element.', + 'type': 'jQuery' + }, + { + 'desc': 'Trigger the reset event of each matched element. This causes all of the functions that have been bound to thet reset event to be executed.', + 'examples': [ + { + 'before': '<p onreset="alert(\'Hello\');">Hello</p>', + 'code': '$("p").reset();', + 'result': 'alert(\'Hello\');' + } + ], + 'name': 'reset', + 'params': [], + 'short': 'Trigger the reset event of each matched element.', + 'type': 'jQuery' + }, + { + 'desc': 'Bind a function to the reset event of each matched element, which will only be executed once. Unlike a call to the normal .reset() method, calling .onereset() causes the bound function to be only executed the first time it is triggered, and never again (unless it is re-bound).', + 'examples': [ + { + 'before': '<p onreset="alert(\'Hello\');">Hello</p>', + 'code': '$("p").onereset( function() { alert("Hello"); } );', + 'result': 'alert(\'Hello\'); // Only executed for the first reset' + } + ], + 'name': 'onereset', + 'params': [ + { + 'desc': 'A function to bind to the reset event on each of the matched elements.', + 'name': 'fn', + 'type': 'Function' + } + ], + 'short': 'Bind a function to the reset event of each matched element, which will only be executed once.', + 'type': 'jQuery' + }, + { + 'desc': 'Removes a bound reset event from each of the matched elements. You must pass the identical function that was used in the original bind method.', + 'examples': [ + { + 'before': '<p onreset="myFunction">Hello</p>', + 'code': '$("p").unreset( myFunction );', + 'result': '<p>Hello</p>' + } + ], + 'name': 'unreset', + 'params': [ + { + 'desc': 'A function to unbind from the reset event on each of the matched elements.', + 'name': 'fn', + 'type': 'Function' + } + ], + 'short': 'Removes a bound reset event from each of the matched elements.', + 'type': 'jQuery' + }, + { + 'desc': 'Removes all bound reset events from each of the matched elements.', + 'examples': [ + { + 'before': '<p onreset="alert(\'Hello\');">Hello</p>', + 'code': '$("p").unreset();', + 'result': '<p>Hello</p>' + } + ], + 'name': 'unreset', + 'params': [], + 'short': 'Removes all bound reset events from each of the matched elements.', + 'type': 'jQuery' + }, + { + 'desc': 'Bind a function to the select event of each matched element.', + 'examples': [ + { + 'before': '<p>Hello</p>', + 'code': '$("p").select( function() { alert("Hello"); } );', + 'result': '<p onselect="alert(\'Hello\');">Hello</p>' + } + ], + 'name': 'select', + 'params': [ + { + 'desc': 'A function to bind to the select event on each of the matched elements.', + 'name': 'fn', + 'type': 'Function' + } + ], + 'short': 'Bind a function to the select event of each matched element.', + 'type': 'jQuery' + }, + { + 'desc': 'Trigger the select event of each matched element. This causes all of the functions that have been bound to thet select event to be executed.', + 'examples': [ + { + 'before': '<p onselect="alert(\'Hello\');">Hello</p>', + 'code': '$("p").select();', + 'result': 'alert(\'Hello\');' + } + ], + 'name': 'select', + 'params': [], + 'short': 'Trigger the select event of each matched element.', + 'type': 'jQuery' + }, + { + 'desc': 'Bind a function to the select event of each matched element, which will only be executed once. Unlike a call to the normal .select() method, calling .oneselect() causes the bound function to be only executed the first time it is triggered, and never again (unless it is re-bound).', + 'examples': [ + { + 'before': '<p onselect="alert(\'Hello\');">Hello</p>', + 'code': '$("p").oneselect( function() { alert("Hello"); } );', + 'result': 'alert(\'Hello\'); // Only executed for the first select' + } + ], + 'name': 'oneselect', + 'params': [ + { + 'desc': 'A function to bind to the select event on each of the matched elements.', + 'name': 'fn', + 'type': 'Function' + } + ], + 'short': 'Bind a function to the select event of each matched element, which will only be executed once.', + 'type': 'jQuery' + }, + { + 'desc': 'Removes a bound select event from each of the matched elements. You must pass the identical function that was used in the original bind method.', + 'examples': [ + { + 'before': '<p onselect="myFunction">Hello</p>', + 'code': '$("p").unselect( myFunction );', + 'result': '<p>Hello</p>' + } + ], + 'name': 'unselect', + 'params': [ + { + 'desc': 'A function to unbind from the select event on each of the matched elements.', + 'name': 'fn', + 'type': 'Function' + } + ], + 'short': 'Removes a bound select event from each of the matched elements.', + 'type': 'jQuery' + }, + { + 'desc': 'Removes all bound select events from each of the matched elements.', + 'examples': [ + { + 'before': '<p onselect="alert(\'Hello\');">Hello</p>', + 'code': '$("p").unselect();', + 'result': '<p>Hello</p>' + } + ], + 'name': 'unselect', + 'params': [], + 'short': 'Removes all bound select events from each of the matched elements.', + 'type': 'jQuery' + }, + { + 'desc': 'Bind a function to the submit event of each matched element.', + 'examples': [ + { + 'before': '<p>Hello</p>', + 'code': '$("p").submit( function() { alert("Hello"); } );', + 'result': '<p onsubmit="alert(\'Hello\');">Hello</p>' + } + ], + 'name': 'submit', + 'params': [ + { + 'desc': 'A function to bind to the submit event on each of the matched elements.', + 'name': 'fn', + 'type': 'Function' + } + ], + 'short': 'Bind a function to the submit event of each matched element.', + 'type': 'jQuery' + }, + { + 'desc': 'Trigger the submit event of each matched element. This causes all of the functions that have been bound to thet submit event to be executed.', + 'examples': [ + { + 'before': '<p onsubmit="alert(\'Hello\');">Hello</p>', + 'code': '$("p").submit();', + 'result': 'alert(\'Hello\');' + } + ], + 'name': 'submit', + 'params': [], + 'short': 'Trigger the submit event of each matched element.', + 'type': 'jQuery' + }, + { + 'desc': 'Bind a function to the submit event of each matched element, which will only be executed once. Unlike a call to the normal .submit() method, calling .onesubmit() causes the bound function to be only executed the first time it is triggered, and never again (unless it is re-bound).', + 'examples': [ + { + 'before': '<p onsubmit="alert(\'Hello\');">Hello</p>', + 'code': '$("p").onesubmit( function() { alert("Hello"); } );', + 'result': 'alert(\'Hello\'); // Only executed for the first submit' + } + ], + 'name': 'onesubmit', + 'params': [ + { + 'desc': 'A function to bind to the submit event on each of the matched elements.', + 'name': 'fn', + 'type': 'Function' + } + ], + 'short': 'Bind a function to the submit event of each matched element, which will only be executed once.', + 'type': 'jQuery' + }, + { + 'desc': 'Removes a bound submit event from each of the matched elements. You must pass the identical function that was used in the original bind method.', + 'examples': [ + { + 'before': '<p onsubmit="myFunction">Hello</p>', + 'code': '$("p").unsubmit( myFunction );', + 'result': '<p>Hello</p>' + } + ], + 'name': 'unsubmit', + 'params': [ + { + 'desc': 'A function to unbind from the submit event on each of the matched elements.', + 'name': 'fn', + 'type': 'Function' + } + ], + 'short': 'Removes a bound submit event from each of the matched elements.', + 'type': 'jQuery' + }, + { + 'desc': 'Removes all bound submit events from each of the matched elements.', + 'examples': [ + { + 'before': '<p onsubmit="alert(\'Hello\');">Hello</p>', + 'code': '$("p").unsubmit();', + 'result': '<p>Hello</p>' + } + ], + 'name': 'unsubmit', + 'params': [], + 'short': 'Removes all bound submit events from each of the matched elements.', + 'type': 'jQuery' + }, + { + 'desc': 'Bind a function to the keydown event of each matched element.', + 'examples': [ + { + 'before': '<p>Hello</p>', + 'code': '$("p").keydown( function() { alert("Hello"); } );', + 'result': '<p onkeydown="alert(\'Hello\');">Hello</p>' + } + ], + 'name': 'keydown', + 'params': [ + { + 'desc': 'A function to bind to the keydown event on each of the matched elements.', + 'name': 'fn', + 'type': 'Function' + } + ], + 'short': 'Bind a function to the keydown event of each matched element.', + 'type': 'jQuery' + }, + { + 'desc': 'Trigger the keydown event of each matched element. This causes all of the functions that have been bound to thet keydown event to be executed.', + 'examples': [ + { + 'before': '<p onkeydown="alert(\'Hello\');">Hello</p>', + 'code': '$("p").keydown();', + 'result': 'alert(\'Hello\');' + } + ], + 'name': 'keydown', + 'params': [], + 'short': 'Trigger the keydown event of each matched element.', + 'type': 'jQuery' + }, + { + 'desc': 'Bind a function to the keydown event of each matched element, which will only be executed once. Unlike a call to the normal .keydown() method, calling .onekeydown() causes the bound function to be only executed the first time it is triggered, and never again (unless it is re-bound).', + 'examples': [ + { + 'before': '<p onkeydown="alert(\'Hello\');">Hello</p>', + 'code': '$("p").onekeydown( function() { alert("Hello"); } );', + 'result': 'alert(\'Hello\'); // Only executed for the first keydown' + } + ], + 'name': 'onekeydown', + 'params': [ + { + 'desc': 'A function to bind to the keydown event on each of the matched elements.', + 'name': 'fn', + 'type': 'Function' + } + ], + 'short': 'Bind a function to the keydown event of each matched element, which will only be executed once.', + 'type': 'jQuery' + }, + { + 'desc': 'Removes a bound keydown event from each of the matched elements. You must pass the identical function that was used in the original bind method.', + 'examples': [ + { + 'before': '<p onkeydown="myFunction">Hello</p>', + 'code': '$("p").unkeydown( myFunction );', + 'result': '<p>Hello</p>' + } + ], + 'name': 'unkeydown', + 'params': [ + { + 'desc': 'A function to unbind from the keydown event on each of the matched elements.', + 'name': 'fn', + 'type': 'Function' + } + ], + 'short': 'Removes a bound keydown event from each of the matched elements.', + 'type': 'jQuery' + }, + { + 'desc': 'Removes all bound keydown events from each of the matched elements.', + 'examples': [ + { + 'before': '<p onkeydown="alert(\'Hello\');">Hello</p>', + 'code': '$("p").unkeydown();', + 'result': '<p>Hello</p>' + } + ], + 'name': 'unkeydown', + 'params': [], + 'short': 'Removes all bound keydown events from each of the matched elements.', + 'type': 'jQuery' + }, + { + 'desc': 'Bind a function to the keypress event of each matched element.', + 'examples': [ + { + 'before': '<p>Hello</p>', + 'code': '$("p").keypress( function() { alert("Hello"); } );', + 'result': '<p onkeypress="alert(\'Hello\');">Hello</p>' + } + ], + 'name': 'keypress', + 'params': [ + { + 'desc': 'A function to bind to the keypress event on each of the matched elements.', + 'name': 'fn', + 'type': 'Function' + } + ], + 'short': 'Bind a function to the keypress event of each matched element.', + 'type': 'jQuery' + }, + { + 'desc': 'Trigger the keypress event of each matched element. This causes all of the functions that have been bound to thet keypress event to be executed.', + 'examples': [ + { + 'before': '<p onkeypress="alert(\'Hello\');">Hello</p>', + 'code': '$("p").keypress();', + 'result': 'alert(\'Hello\');' + } + ], + 'name': 'keypress', + 'params': [], + 'short': 'Trigger the keypress event of each matched element.', + 'type': 'jQuery' + }, + { + 'desc': 'Bind a function to the keypress event of each matched element, which will only be executed once. Unlike a call to the normal .keypress() method, calling .onekeypress() causes the bound function to be only executed the first time it is triggered, and never again (unless it is re-bound).', + 'examples': [ + { + 'before': '<p onkeypress="alert(\'Hello\');">Hello</p>', + 'code': '$("p").onekeypress( function() { alert("Hello"); } );', + 'result': 'alert(\'Hello\'); // Only executed for the first keypress' + } + ], + 'name': 'onekeypress', + 'params': [ + { + 'desc': 'A function to bind to the keypress event on each of the matched elements.', + 'name': 'fn', + 'type': 'Function' + } + ], + 'short': 'Bind a function to the keypress event of each matched element, which will only be executed once.', + 'type': 'jQuery' + }, + { + 'desc': 'Removes a bound keypress event from each of the matched elements. You must pass the identical function that was used in the original bind method.', + 'examples': [ + { + 'before': '<p onkeypress="myFunction">Hello</p>', + 'code': '$("p").unkeypress( myFunction );', + 'result': '<p>Hello</p>' + } + ], + 'name': 'unkeypress', + 'params': [ + { + 'desc': 'A function to unbind from the keypress event on each of the matched elements.', + 'name': 'fn', + 'type': 'Function' + } + ], + 'short': 'Removes a bound keypress event from each of the matched elements.', + 'type': 'jQuery' + }, + { + 'desc': 'Removes all bound keypress events from each of the matched elements.', + 'examples': [ + { + 'before': '<p onkeypress="alert(\'Hello\');">Hello</p>', + 'code': '$("p").unkeypress();', + 'result': '<p>Hello</p>' + } + ], + 'name': 'unkeypress', + 'params': [], + 'short': 'Removes all bound keypress events from each of the matched elements.', + 'type': 'jQuery' + }, + { + 'desc': 'Bind a function to the keyup event of each matched element.', + 'examples': [ + { + 'before': '<p>Hello</p>', + 'code': '$("p").keyup( function() { alert("Hello"); } );', + 'result': '<p onkeyup="alert(\'Hello\');">Hello</p>' + } + ], + 'name': 'keyup', + 'params': [ + { + 'desc': 'A function to bind to the keyup event on each of the matched elements.', + 'name': 'fn', + 'type': 'Function' + } + ], + 'short': 'Bind a function to the keyup event of each matched element.', + 'type': 'jQuery' + }, + { + 'desc': 'Trigger the keyup event of each matched element. This causes all of the functions that have been bound to thet keyup event to be executed.', + 'examples': [ + { + 'before': '<p onkeyup="alert(\'Hello\');">Hello</p>', + 'code': '$("p").keyup();', + 'result': 'alert(\'Hello\');' + } + ], + 'name': 'keyup', + 'params': [], + 'short': 'Trigger the keyup event of each matched element.', + 'type': 'jQuery' + }, + { + 'desc': 'Bind a function to the keyup event of each matched element, which will only be executed once. Unlike a call to the normal .keyup() method, calling .onekeyup() causes the bound function to be only executed the first time it is triggered, and never again (unless it is re-bound).', + 'examples': [ + { + 'before': '<p onkeyup="alert(\'Hello\');">Hello</p>', + 'code': '$("p").onekeyup( function() { alert("Hello"); } );', + 'result': 'alert(\'Hello\'); // Only executed for the first keyup' + } + ], + 'name': 'onekeyup', + 'params': [ + { + 'desc': 'A function to bind to the keyup event on each of the matched elements.', + 'name': 'fn', + 'type': 'Function' + } + ], + 'short': 'Bind a function to the keyup event of each matched element, which will only be executed once.', + 'type': 'jQuery' + }, + { + 'desc': 'Removes a bound keyup event from each of the matched elements. You must pass the identical function that was used in the original bind method.', + 'examples': [ + { + 'before': '<p onkeyup="myFunction">Hello</p>', + 'code': '$("p").unkeyup( myFunction );', + 'result': '<p>Hello</p>' + } + ], + 'name': 'unkeyup', + 'params': [ + { + 'desc': 'A function to unbind from the keyup event on each of the matched elements.', + 'name': 'fn', + 'type': 'Function' + } + ], + 'short': 'Removes a bound keyup event from each of the matched elements.', + 'type': 'jQuery' + }, + { + 'desc': 'Removes all bound keyup events from each of the matched elements.', + 'examples': [ + { + 'before': '<p onkeyup="alert(\'Hello\');">Hello</p>', + 'code': '$("p").unkeyup();', + 'result': '<p>Hello</p>' + } + ], + 'name': 'unkeyup', + 'params': [], + 'short': 'Removes all bound keyup events from each of the matched elements.', + 'type': 'jQuery' + }, + { + 'desc': 'Bind a function to the error event of each matched element.', + 'examples': [ + { + 'before': '<p>Hello</p>', + 'code': '$("p").error( function() { alert("Hello"); } );', + 'result': '<p onerror="alert(\'Hello\');">Hello</p>' + } + ], + 'name': 'error', + 'params': [ + { + 'desc': 'A function to bind to the error event on each of the matched elements.', + 'name': 'fn', + 'type': 'Function' + } + ], + 'short': 'Bind a function to the error event of each matched element.', + 'type': 'jQuery' + }, + { + 'desc': 'Trigger the error event of each matched element. This causes all of the functions that have been bound to thet error event to be executed.', + 'examples': [ + { + 'before': '<p onerror="alert(\'Hello\');">Hello</p>', + 'code': '$("p").error();', + 'result': 'alert(\'Hello\');' + } + ], + 'name': 'error', + 'params': [], + 'short': 'Trigger the error event of each matched element.', + 'type': 'jQuery' + }, + { + 'desc': 'Bind a function to the error event of each matched element, which will only be executed once. Unlike a call to the normal .error() method, calling .oneerror() causes the bound function to be only executed the first time it is triggered, and never again (unless it is re-bound).', + 'examples': [ + { + 'before': '<p onerror="alert(\'Hello\');">Hello</p>', + 'code': '$("p").oneerror( function() { alert("Hello"); } );', + 'result': 'alert(\'Hello\'); // Only executed for the first error' + } + ], + 'name': 'oneerror', + 'params': [ + { + 'desc': 'A function to bind to the error event on each of the matched elements.', + 'name': 'fn', + 'type': 'Function' + } + ], + 'short': 'Bind a function to the error event of each matched element, which will only be executed once.', + 'type': 'jQuery' + }, + { + 'desc': 'Removes a bound error event from each of the matched elements. You must pass the identical function that was used in the original bind method.', + 'examples': [ + { + 'before': '<p onerror="myFunction">Hello</p>', + 'code': '$("p").unerror( myFunction );', + 'result': '<p>Hello</p>' + } + ], + 'name': 'unerror', + 'params': [ + { + 'desc': 'A function to unbind from the error event on each of the matched elements.', + 'name': 'fn', + 'type': 'Function' + } + ], + 'short': 'Removes a bound error event from each of the matched elements.', + 'type': 'jQuery' + }, + { + 'desc': 'Removes all bound error events from each of the matched elements.', + 'examples': [ + { + 'before': '<p onerror="alert(\'Hello\');">Hello</p>', + 'code': '$("p").unerror();', + 'result': '<p>Hello</p>' + } + ], + 'name': 'unerror', + 'params': [], + 'short': 'Removes all bound error events from each of the matched elements.', + 'type': 'jQuery' + }, + { + 'desc': 'Show all matched elements using a graceful animation. The height, width, and opacity of each of the matched elements are changed dynamically according to the specified speed.', + 'examples': [ + { + 'code': '$("p").show("slow");' + } + ], + 'name': 'show', + 'params': [ + { + 'desc': 'A string representing one of the three predefined speeds ("slow", "normal", or "fast") or the number of milliseconds to run the animation (e.g. 1000).', + 'name': 'speed', + 'type': 'Object' + } + ], + 'short': 'Show all matched elements using a graceful animation.', + 'type': 'jQuery' + }, + { + 'desc': 'Show all matched elements using a graceful animation and firing a callback function after completion. The height, width, and opacity of each of the matched elements are changed dynamically according to the specified speed.', + 'examples': [ + { + 'code': '$("p").show("slow",function(){   alert("Animation Done.");
    });' + } + ], + 'name': 'show', + 'params': [ + { + 'desc': 'A string representing one of the three predefined speeds ("slow", "normal", or "fast") or the number of milliseconds to run the animation (e.g. 1000).', + 'name': 'speed', + 'type': 'Object' + }, + { + 'desc': 'A function to be executed whenever the animation completes.', + 'name': 'callback', + 'type': 'Function' + } + ], + 'short': 'Show all matched elements using a graceful animation and firing a callback function after completion.', + 'type': 'jQuery' + }, + { + 'desc': 'Hide all matched elements using a graceful animation. The height, width, and opacity of each of the matched elements are changed dynamically according to the specified speed.', + 'examples': [ + { + 'code': '$("p").hide("slow");' + } + ], + 'name': 'hide', + 'params': [ + { + 'desc': 'A string representing one of the three predefined speeds ("slow", "normal", or "fast") or the number of milliseconds to run the animation (e.g. 1000).', + 'name': 'speed', + 'type': 'Object' + } + ], + 'short': 'Hide all matched elements using a graceful animation.', + 'type': 'jQuery' + }, + { + 'desc': 'Hide all matched elements using a graceful animation and firing a callback function after completion. The height, width, and opacity of each of the matched elements are changed dynamically according to the specified speed.', + 'examples': [ + { + 'code': '$("p").hide("slow",function(){   alert("Animation Done.");
    });' + } + ], + 'name': 'hide', + 'params': [ + { + 'desc': 'A string representing one of the three predefined speeds ("slow", "normal", or "fast") or the number of milliseconds to run the animation (e.g. 1000).', + 'name': 'speed', + 'type': 'Object' + }, + { + 'desc': 'A function to be executed whenever the animation completes.', + 'name': 'callback', + 'type': 'Function' + } + ], + 'short': 'Hide all matched elements using a graceful animation and firing a callback function after completion.', + 'type': 'jQuery' + }, + { + 'desc': 'Reveal all matched elements by adjusting their height. Only the height is adjusted for this animation, causing all matched elements to be revealed in a "sliding" manner.', + 'examples': [ + { + 'code': '$("p").slideDown("slow");' + } + ], + 'name': 'slideDown', + 'params': [ + { + 'desc': 'A string representing one of the three predefined speeds ("slow", "normal", or "fast") or the number of milliseconds to run the animation (e.g. 1000).', + 'name': 'speed', + 'type': 'Object' + } + ], + 'short': 'Reveal all matched elements by adjusting their height.', + 'type': 'jQuery' + }, + { + 'desc': 'Reveal all matched elements by adjusting their height and firing a callback function after completion. Only the height is adjusted for this animation, causing all matched elements to be revealed in a "sliding" manner.', + 'examples': [ + { + 'code': '$("p").slideDown("slow",function(){   alert("Animation Done.");
    });' + } + ], + 'name': 'slideDown', + 'params': [ + { + 'desc': 'A string representing one of the three predefined speeds ("slow", "normal", or "fast") or the number of milliseconds to run the animation (e.g. 1000).', + 'name': 'speed', + 'type': 'Object' + }, + { + 'desc': 'A function to be executed whenever the animation completes.', + 'name': 'callback', + 'type': 'Function' + } + ], + 'short': 'Reveal all matched elements by adjusting their height and firing a callback function after completion.', + 'type': 'jQuery' + }, + { + 'desc': 'Hide all matched elements by adjusting their height. Only the height is adjusted for this animation, causing all matched elements to be hidden in a "sliding" manner.', + 'examples': [ + { + 'code': '$("p").slideUp("slow");' + } + ], + 'name': 'slideUp', + 'params': [ + { + 'desc': 'A string representing one of the three predefined speeds ("slow", "normal", or "fast") or the number of milliseconds to run the animation (e.g. 1000).', + 'name': 'speed', + 'type': 'Object' + } + ], + 'short': 'Hide all matched elements by adjusting their height.', + 'type': 'jQuery' + }, + { + 'desc': 'Hide all matched elements by adjusting their height and firing a callback function after completion. Only the height is adjusted for this animation, causing all matched elements to be hidden in a "sliding" manner.', + 'examples': [ + { + 'code': '$("p").slideUp("slow",function(){   alert("Animation Done.");
    });' + } + ], + 'name': 'slideUp', + 'params': [ + { + 'desc': 'A string representing one of the three predefined speeds ("slow", "normal", or "fast") or the number of milliseconds to run the animation (e.g. 1000).', + 'name': 'speed', + 'type': 'Object' + }, + { + 'desc': 'A function to be executed whenever the animation completes.', + 'name': 'callback', + 'type': 'Function' + } + ], + 'short': 'Hide all matched elements by adjusting their height and firing a callback function after completion.', + 'type': 'jQuery' + }, + { + 'desc': 'Fade in all matched elements by adjusting their opacity. Only the opacity is adjusted for this animation, meaning that all of the matched elements should already have some form of height and width associated with them.', + 'examples': [ + { + 'code': '$("p").fadeIn("slow");' + } + ], + 'name': 'fadeIn', + 'params': [ + { + 'desc': 'A string representing one of the three predefined speeds ("slow", "normal", or "fast") or the number of milliseconds to run the animation (e.g. 1000).', + 'name': 'speed', + 'type': 'Object' + } + ], + 'short': 'Fade in all matched elements by adjusting their opacity.', + 'type': 'jQuery' + }, + { + 'desc': 'Fade in all matched elements by adjusting their opacity and firing a callback function after completion. Only the opacity is adjusted for this animation, meaning that all of the matched elements should already have some form of height and width associated with them.', + 'examples': [ + { + 'code': '$("p").fadeIn("slow",function(){   alert("Animation Done.");
    });' + } + ], + 'name': 'fadeIn', + 'params': [ + { + 'desc': 'A string representing one of the three predefined speeds ("slow", "normal", or "fast") or the number of milliseconds to run the animation (e.g. 1000).', + 'name': 'speed', + 'type': 'Object' + }, + { + 'desc': 'A function to be executed whenever the animation completes.', + 'name': 'callback', + 'type': 'Function' + } + ], + 'short': 'Fade in all matched elements by adjusting their opacity and firing a callback function after completion.', + 'type': 'jQuery' + }, + { + 'desc': 'Fade out all matched elements by adjusting their opacity. Only the opacity is adjusted for this animation, meaning that all of the matched elements should already have some form of height and width associated with them.', + 'examples': [ + { + 'code': '$("p").fadeOut("slow");' + } + ], + 'name': 'fadeOut', + 'params': [ + { + 'desc': 'A string representing one of the three predefined speeds ("slow", "normal", or "fast") or the number of milliseconds to run the animation (e.g. 1000).', + 'name': 'speed', + 'type': 'Object' + } + ], + 'short': 'Fade out all matched elements by adjusting their opacity.', + 'type': 'jQuery' + }, + { + 'desc': 'Fade out all matched elements by adjusting their opacity and firing a callback function after completion. Only the opacity is adjusted for this animation, meaning that all of the matched elements should already have some form of height and width associated with them.', + 'examples': [ + { + 'code': '$("p").fadeOut("slow",function(){   alert("Animation Done.");
    });' + } + ], + 'name': 'fadeOut', + 'params': [ + { + 'desc': 'A string representing one of the three predefined speeds ("slow", "normal", or "fast") or the number of milliseconds to run the animation (e.g. 1000).', + 'name': 'speed', + 'type': 'Object' + }, + { + 'desc': 'A function to be executed whenever the animation completes.', + 'name': 'callback', + 'type': 'Function' + } + ], + 'short': 'Fade out all matched elements by adjusting their opacity and firing a callback function after completion.', + 'type': 'jQuery' + }, + { + 'desc': 'Fade the opacity of all matched elements to a specified opacity. Only the opacity is adjusted for this animation, meaning that all of the matched elements should already have some form of height and width associated with them.', + 'examples': [ + { + 'code': '$("p").fadeTo("slow", 0.5);' + } + ], + 'name': 'fadeTo', + 'params': [ + { + 'desc': 'A string representing one of the three predefined speeds ("slow", "normal", or "fast") or the number of milliseconds to run the animation (e.g. 1000).', + 'name': 'speed', + 'type': 'Object' + }, + { + 'desc': 'The opacity to fade to (a number from 0 to 1).', + 'name': 'opacity', + 'type': 'Number' + } + ], + 'short': 'Fade the opacity of all matched elements to a specified opacity.', + 'type': 'jQuery' + }, + { + 'desc': 'Fade the opacity of all matched elements to a specified opacity and firing a callback function after completion. Only the opacity is adjusted for this animation, meaning that all of the matched elements should already have some form of height and width associated with them.', + 'examples': [ + { + 'code': '$("p").fadeTo("slow", 0.5, function(){   alert("Animation Done.");
    });' + } + ], + 'name': 'fadeTo', + 'params': [ + { + 'desc': 'A string representing one of the three predefined speeds ("slow", "normal", or "fast") or the number of milliseconds to run the animation (e.g. 1000).', + 'name': 'speed', + 'type': 'Object' + }, + { + 'desc': 'The opacity to fade to (a number from 0 to 1).', + 'name': 'opacity', + 'type': 'Number' + }, + { + 'desc': 'A function to be executed whenever the animation completes.', + 'name': 'callback', + 'type': 'Function' + } + ], + 'short': 'Fade the opacity of all matched elements to a specified opacity and firing a callback function after completion.', + 'type': 'jQuery' + } + ] diff --git a/docs/jquery-docs-jsonp.js b/docs/jquery-docs-jsonp.js new file mode 100644 index 000000000..f8f121490 --- /dev/null +++ b/docs/jquery-docs-jsonp.js @@ -0,0 +1 @@ +docsLoaded([{'desc': 'The current SVN version of jQuery.','examples': [],'name': 'jquery','params': [],'private': 1,'property': 1,'short': 'The current SVN version of jQuery.','type': 'String'},{'desc': 'The number of elements currently matched.','examples': [{'before': '<img src="test1.jpg"/> <img src="test2.jpg"/>','code': '$("img").length;','result': '2'}],'name': 'length','params': [],'property': 1,'short': 'The number of elements currently matched.','type': 'Number'},{'desc': 'The number of elements currently matched.','examples': [{'before': '<img src="test1.jpg"/> <img src="test2.jpg"/>','code': '$("img").size();','result': '2'}],'name': 'size','params': [],'short': 'The number of elements currently matched.','type': 'Number'},{'desc': 'Access all matched elements. This serves as a backwards-compatible way of accessing all matched elements (other than the jQuery object itself, which is, in fact, an array of elements).','examples': [{'before': '<img src="test1.jpg"/> <img src="test2.jpg"/>','code': '$("img").get();','result': '[ <img src="test1.jpg"/> <img src="test2.jpg"/> ]'}],'name': 'get','params': [],'short': 'Access all matched elements.','type': 'Array<Element>'},{'desc': 'Access a single matched element. num is used to access the numth element matched.','examples': [{'before': '<img src="test1.jpg"/> <img src="test2.jpg"/>','code': '$("img").get(1);','result': '[ <img src="test1.jpg"/> ]'}],'name': 'get','params': [{'desc': 'Access the element in the <tt>num</tt>th position.','name': 'num','type': 'Number'}],'short': 'Access a single matched element.','type': 'Element'},{'desc': 'Set the jQuery object to an array of elements.','examples': [{'code': '$("img").get([ document.body ]);','result': '$("img").get() == [ document.body ]'}],'name': 'get','params': [{'desc': 'An array of elements','name': 'elems','type': 'Elements'}],'private': 1,'short': 'Set the jQuery object to an array of elements.','type': 'jQuery'},{'desc': 'Execute a function within the context of every matched element. This means that every time the passed-in function is executed (which is once for every element matched) the \'this\' keyword points to the specific element.

    Additionally, the function, when executed, is passed a single argument representing the position of the element in the matched set.','examples': [{'before': '<img/> <img/>','code': '$("img").each(function(){ this.src = "test.jpg"; });','result': '<img src="test.jpg"/> <img src="test.jpg"/>'}],'name': 'each','params': [{'desc': 'A function to execute','name': 'fn','type': 'Function'}],'short': 'Execute a function within the context of every matched element.','type': 'jQuery'},{'desc': 'Access a property on the first matched element. This method makes it easy to retreive a property value from the first matched element.','examples': [{'before': '<img src="test.jpg"/>','code': '$("img").attr("src");','result': 'test.jpg'}],'name': 'attr','params': [{'desc': 'The name of the property to access.','name': 'name','type': 'String'}],'short': 'Access a property on the first matched element.','type': 'Object'},{'desc': 'Set a hash of key/value object properties to all matched elements. This serves as the best way to set a large number of properties on all matched elements.','examples': [{'before': '<img/>','code': '$("img").attr({ src: "test.jpg", alt: "Test Image" });','result': '<img src="test.jpg" alt="Test Image"/>'}],'name': 'attr','params': [{'desc': 'A set of key/value pairs to set as object properties.','name': 'prop','type': 'Hash'}],'short': 'Set a hash of key/value object properties to all matched elements.','type': 'jQuery'},{'desc': 'Set a single property to a value, on all matched elements.','examples': [{'before': '<img/>','code': '$("img").attr("src","test.jpg");','result': '<img src="test.jpg"/>'}],'name': 'attr','params': [{'desc': 'The name of the property to set.','name': 'key','type': 'String'},{'desc': 'The value to set the property to.','name': 'value','type': 'Object'}],'short': 'Set a single property to a value, on all matched elements.','type': 'jQuery'},{'desc': 'Access a style property on the first matched element. This method makes it easy to retreive a style property value from the first matched element.','examples': [{'before': '<p style="color:red;">Test Paragraph.</p>','code': '$("p").css("red");','result': 'red'}],'name': 'css','params': [{'desc': 'The name of the property to access.','name': 'name','type': 'String'}],'short': 'Access a style property on the first matched element.','type': 'Object'},{'desc': 'Set a hash of key/value style properties to all matched elements. This serves as the best way to set a large number of style properties on all matched elements.','examples': [{'before': '<p>Test Paragraph.</p>','code': '$("p").css({ color: "red", background: "blue" });','result': '<p style="color:red; background:blue;">Test Paragraph.</p>'}],'name': 'css','params': [{'desc': 'A set of key/value pairs to set as style properties.','name': 'prop','type': 'Hash'}],'short': 'Set a hash of key/value style properties to all matched elements.','type': 'jQuery'},{'desc': 'Set a single style property to a value, on all matched elements.','examples': [{'before': '<p>Test Paragraph.</p>','code': '$("p").css("color","red");','result': '<p style="color:red;">Test Paragraph.</p>'}],'name': 'css','params': [{'desc': 'The name of the property to set.','name': 'key','type': 'String'},{'desc': 'The value to set the property to.','name': 'value','type': 'Object'}],'short': 'Set a single style property to a value, on all matched elements.','type': 'jQuery'},{'desc': 'Retreive the text contents of all matched elements. The result is a string that contains the combined text contents of all matched elements. This method works on both HTML and XML documents.','examples': [{'before': '<p>Test Paragraph.</p>','code': '$("p").text();','result': 'Test Paragraph.'}],'name': 'text','params': [],'short': 'Retreive the text contents of all matched elements.','type': 'String'},{'any': ['String html A string of HTML, that will be created on the fly and wrapped around the target.','Element elem A DOM element that will be wrapped.','Array<Element> elems An array of elements, the first of which will be wrapped.','Object obj Any object, converted to a string, then a text node.'],'desc': 'Wrap all matched elements with a structure of other elements. This wrapping process is most useful for injecting additional stucture into a document, without ruining the original semantic qualities of a document.

    The way that is works is that it goes through the first element argument provided and finds the deepest element within the structure - it is that element that will en-wrap everything else.','examples': [{'before': '<p>Test Paragraph.</p>','code': '$("p").wrap("<div class=\'wrap\'></div>");','result': '<div class=\'wrap\'><p>Test Paragraph.</p></div>'}],'name': 'wrap','params': [],'short': 'Wrap all matched elements with a structure of other elements.','type': 'jQuery'},{'any': ['String html A string of HTML, that will be created on the fly and appended to the target.','Element elem A DOM element that will be appended.','Array<Element> elems An array of elements, all of which will be appended.','Object obj Any object, converted to a string, then a text node.'],'desc': 'Append any number of elements to the inside of all matched elements. This operation is similar to doing an appendChild to all the specified elements, adding them into the document.','examples': [{'before': '<p>I would like to say: </p>','code': '$("p").append("<b>Hello</b>");','result': '<p>I would like to say: <b>Hello</b></p>'}],'name': 'append','params': [],'short': 'Append any number of elements to the inside of all matched elements.','type': 'jQuery'},{'any': ['String html A string of HTML, that will be created on the fly and prepended to the target.','Element elem A DOM element that will be prepended.','Array<Element> elems An array of elements, all of which will be prepended.','Object obj Any object, converted to a string, then a text node.'],'desc': 'Prepend any number of elements to the inside of all matched elements. This operation is the best way to insert a set of elements inside, at the beginning, of all the matched element.','examples': [{'before': '<p>, how are you?</p>','code': '$("p").prepend("<b>Hello</b>");','result': '<p><b>Hello</b>, how are you?</p>'}],'name': 'prepend','params': [],'short': 'Prepend any number of elements to the inside of all matched elements.','type': 'jQuery'},{'any': ['String html A string of HTML, that will be created on the fly and inserted.','Element elem A DOM element that will beinserted.','Array<Element> elems An array of elements, all of which will be inserted.','Object obj Any object, converted to a string, then a text node.'],'desc': 'Insert any number of elements before each of the matched elements.','examples': [{'before': '<p>how are you?</p>','code': '$("p").before("<b>Hello</b>");','result': '<b>Hello</b><p>how are you?</p>'}],'name': 'before','params': [],'short': 'Insert any number of elements before each of the matched elements.','type': 'jQuery'},{'any': ['String html A string of HTML, that will be created on the fly and inserted.','Element elem A DOM element that will beinserted.','Array<Element> elems An array of elements, all of which will be inserted.','Object obj Any object, converted to a string, then a text node.'],'desc': 'Insert any number of elements after each of the matched elements.','examples': [{'before': '<p>How are you?</p>','code': '$("p").after("<p>I\'m doing fine.</p>");','result': '<p>How are you?</p><p>I\'m doing fine.</p>'}],'name': 'after','params': [],'short': 'Insert any number of elements after each of the matched elements.','type': 'jQuery'},{'desc': 'End the most recent \'destructive\' operation, reverting the list of matched elements back to its previous state. After an end operation, the list of matched elements will revert to the last state of matched elements.','examples': [{'before': '<p><span>Hello</span>, how are you?</p>','code': '$("p").find("span").end();','result': '$("p").find("span").end() == [ <p>...</p> ]'}],'name': 'end','params': [],'short': 'End the most recent \'destructive\' operation, reverting the list of matched elements back to its previous state.','type': 'jQuery'},{'desc': 'Searches for all elements that match the specified expression. This method is the optimal way of finding additional descendant elements with which to process.

    All searching is done using a jQuery expression. The expression can be written using CSS 1-3 Selector syntax, or basic XPath.','examples': [{'before': '<p><span>Hello</span>, how are you?</p>','code': '$("p").find("span");','result': '$("p").find("span") == [ <span>Hello</span> ]'}],'name': 'find','params': [{'desc': 'An expression to search with.','name': 'expr','type': 'String'}],'short': 'Searches for all elements that match the specified expression.','type': 'jQuery'},{'desc': 'Removes all elements from the set of matched elements that do not match the specified expression. This method is used to narrow down the results of a search.

    All searching is done using a jQuery expression. The expression can be written using CSS 1-3 Selector syntax, or basic XPath.','examples': [{'before': '<p class="selected">Hello</p><p>How are you?</p>','code': '$("p").filter(".selected")','result': '$("p").filter(".selected") == [ <p class="selected">Hello</p> ]'}],'name': 'filter','params': [{'desc': 'An expression to search with.','name': 'expr','type': 'String'}],'short': 'Removes all elements from the set of matched elements that do not match the specified expression.','type': 'jQuery'},{'desc': 'Removes all elements from the set of matched elements that do not match at least one of the expressions passed to the function. This method is used when you want to filter the set of matched elements through more than one expression.

    Elements will be retained in the jQuery object if they match at least one of the expressions passed.','examples': [{'before': '<p>Hello</p><p>Hello Again</p><p class="selected">And Again</p>','code': '$("p").filter([".selected", ":first"])','result': '$("p").filter([".selected", ":first"]) == [ <p>Hello</p>, <p class="selected">And Again</p> ]'}],'name': 'filter','params': [{'desc': 'A set of expressions to evaluate against','name': 'exprs','type': 'Array<String>'}],'short': 'Removes all elements from the set of matched elements that do not match at least one of the expressions passed to the function.','type': 'jQuery'},{'desc': 'Removes the specified Element from the set of matched elements. This method is used to remove a single Element from a jQuery object.','examples': [{'before': '<p>Hello</p><p id="selected">Hello Again</p>','code': '$("p").not( document.getElementById("selected") )','result': '[ <p>Hello</p> ]'}],'name': 'not','params': [{'desc': 'An element to remove from the set','name': 'el','type': 'Element'}],'short': 'Removes the specified Element from the set of matched elements.','type': 'jQuery'},{'desc': 'Removes elements matching the specified expression from the set of matched elements. This method is used to remove one or more elements from a jQuery object.','examples': [{'before': '<p>Hello</p><p id="selected">Hello Again</p>','code': '$("p").not("#selected")','result': '[ <p>Hello</p> ]'}],'name': 'not','params': [{'desc': 'An expression with which to remove matching elements','name': 'expr','type': 'String'}],'short': 'Removes elements matching the specified expression from the set of matched elements.','type': 'jQuery'},{'desc': 'Adds the elements matched by the expression to the jQuery object. This can be used to concatenate the result sets of two expressions.','examples': [{'before': '<p>Hello</p><p><span>Hello Again</span></p>','code': '$("p").add("span")','result': '[ <p>Hello</p>, <span>Hello Again</span> ]'}],'name': 'add','params': [{'desc': 'An expression whose matched elements are added','name': 'expr','type': 'String'}],'short': 'Adds the elements matched by the expression to the jQuery object.','type': 'jQuery'},{'desc': 'Adds each of the Elements in the array to the set of matched elements. This is used to add a set of Elements to a jQuery object.','examples': [{'before': '<p>Hello</p><p><span id="a">Hello Again</span><span id="b">And Again</span></p>','code': '$("p").add([document.getElementById("a"), document.getElementById("b")])','result': '[ <p>Hello</p>, <span id="a">Hello Again</span>, <span id="b">And Again</span> ]'}],'name': 'add','params': [{'desc': 'An array of Elements to add','name': 'els','type': 'Array<Element>'}],'short': 'Adds each of the Elements in the array to the set of matched elements.','type': 'jQuery'},{'desc': 'Adds a single Element to the set of matched elements. This is used to add a single Element to a jQuery object.','examples': [{'before': '<p>Hello</p><p><span id="a">Hello Again</span></p>','code': '$("p").add( document.getElementById("a") )','result': '[ <p>Hello</p>, <span id="a">Hello Again</span> ]'}],'name': 'add','params': [{'desc': 'An Element to add','name': 'el','type': 'Element'}],'short': 'Adds a single Element to the set of matched elements.','type': 'jQuery'},{'desc': '','examples': [],'name': 'domManip','params': [{'desc': '','name': 'args','type': 'Array'},{'desc': '','name': 'table','type': 'Boolean'},{'desc': '','name': 'int','type': 'Number'},{'desc': 'The function doing the DOM manipulation.','name': 'fn','type': 'Function'}],'private': 1,'short': '','type': 'jQuery'},{'desc': '','examples': [],'name': 'pushStack','params': [{'desc': '','name': 'a','type': 'Array'},{'desc': '','name': 'args','type': 'Array'}],'private': 1,'short': '','type': 'jQuery'},{'desc': '','examples': [],'name': 'extend','params': [{'desc': '','name': 'obj','type': 'Object'},{'desc': '','name': 'prop','type': 'Object'}],'private': 1,'short': '','type': 'Object'},{'desc': 'Extend one object with another, returning the original, modified, object. This is a great utility for simple inheritance.','examples': [],'name': '$.extend','params': [{'desc': 'The object to extend','name': 'obj','type': 'Object'},{'desc': 'The object that will be merged into the first.','name': 'prop','type': 'Object'}],'short': 'Extend one object with another, returning the original, modified, object.','type': 'Object'},{'desc': '','examples': [],'name': 'init','params': [],'private': 1,'short': '','type': 'undefined'},{'desc': 'A generic iterator function, which can be used to seemlessly iterate over both objects and arrays.','examples': [],'name': '$.each','params': [{'desc': 'The object, or array, to iterate over.','name': 'obj','type': 'Object'},{'desc': 'The function that will be executed on every object.','name': 'fn','type': 'Object'}],'short': 'A generic iterator function, which can be used to seemlessly iterate over both objects and arrays.','type': 'Object'},{'desc': 'Remove the whitespace from the beginning and end of a string.','examples': [],'name': '$.trim','params': [{'desc': 'The string to trim.','name': 'str','type': 'String'}],'private': 1,'short': 'Remove the whitespace from the beginning and end of a string.','type': 'String'},{'desc': 'All ancestors of a given element.','examples': [],'name': '$.parents','params': [{'desc': 'The element to find the ancestors of.','name': 'elem','type': 'Element'}],'private': 1,'short': 'All ancestors of a given element.','type': 'Array<Element>'},{'desc': 'All elements on a specified axis.','examples': [],'name': '$.sibling','params': [{'desc': 'The element to find all the siblings of (including itself).','name': 'elem','type': 'Element'}],'private': 1,'short': 'All elements on a specified axis.','type': 'Array'},{'desc': 'Merge two arrays together, removing all duplicates.','examples': [],'name': '$.merge','params': [{'desc': 'The first array to merge.','name': 'a','type': 'Array'},{'desc': 'The second array to merge.','name': 'b','type': 'Array'}],'private': 1,'short': 'Merge two arrays together, removing all duplicates.','type': 'Array'},{'desc': 'Remove items that aren\'t matched in an array. The function passed in to this method will be passed two arguments: \'a\' (which is the array item) and \'i\' (which is the index of the item in the array).','examples': [],'name': '$.grep','params': [{'desc': 'The Array to find items in.','name': 'array','type': 'Array'},{'desc': 'The function to process each item against.','name': 'fn','type': 'Function'},{'desc': 'Invert the selection - select the opposite of the function.','name': 'inv','type': 'Boolean'}],'private': 1,'short': 'Remove items that aren\'t matched in an array.','type': 'Array'},{'desc': 'Translate all items in array to another array of items. The translation function that is provided to this method is passed one argument: \'a\' (the item to be translated). If an array is returned, that array is mapped out and merged into the full array. Additionally, returning \'null\' or \'undefined\' will delete the item from the array. Both of these changes imply that the size of the array may not be the same size upon completion, as it was when it started.','examples': [],'name': '$.map','params': [{'desc': 'The Array to translate.','name': 'array','type': 'Array'},{'desc': 'The function to process each item against.','name': 'fn','type': 'Function'}],'private': 1,'short': 'Translate all items in array to another array of items.','type': 'Array'},{'desc': 'Append all of the matched elements to another, specified, set of elements. This operation is, essentially, the reverse of doing a regular $(A).append(B), in that instead of appending B to A, you\'re appending A to B.','examples': [{'before': '<p>I would like to say: </p><div id="foo"></div>','code': '$("p").appendTo("#foo");','result': '<div id="foo"><p>I would like to say: </p></div>'}],'name': 'appendTo','params': [{'desc': 'A jQuery expression of elements to match.','name': 'expr','type': 'String'}],'short': 'Append all of the matched elements to another, specified, set of elements.','type': 'jQuery'},{'desc': 'Prepend all of the matched elements to another, specified, set of elements. This operation is, essentially, the reverse of doing a regular $(A).prepend(B), in that instead of prepending B to A, you\'re prepending A to B.','examples': [{'before': '<p>I would like to say: </p><div id="foo"><b>Hello</b></div>','code': '$("p").prependTo("#foo");','result': '<div id="foo"><p>I would like to say: </p><b>Hello</b></div>'}],'name': 'prependTo','params': [{'desc': 'A jQuery expression of elements to match.','name': 'expr','type': 'String'}],'short': 'Prepend all of the matched elements to another, specified, set of elements.','type': 'jQuery'},{'desc': 'Insert all of the matched elements before another, specified, set of elements. This operation is, essentially, the reverse of doing a regular $(A).before(B), in that instead of inserting B before A, you\'re inserting A before B.','examples': [{'before': '<div id="foo">Hello</div><p>I would like to say: </p>','code': '$("p").insertBefore("#foo");','result': '<p>I would like to say: </p><div id="foo">Hello</div>'}],'name': 'insertBefore','params': [{'desc': 'A jQuery expression of elements to match.','name': 'expr','type': 'String'}],'short': 'Insert all of the matched elements before another, specified, set of elements.','type': 'jQuery'},{'desc': 'Insert all of the matched elements after another, specified, set of elements. This operation is, essentially, the reverse of doing a regular $(A).after(B), in that instead of inserting B after A, you\'re inserting A after B.','examples': [{'before': '<p>I would like to say: </p><div id="foo">Hello</div>','code': '$("p").insertAfter("#foo");','result': '<div id="foo">Hello</div><p>I would like to say: </p>'}],'name': 'insertAfter','params': [{'desc': 'A jQuery expression of elements to match.','name': 'expr','type': 'String'}],'short': 'Insert all of the matched elements after another, specified, set of elements.','type': 'jQuery'},{'desc': 'Get the current CSS width of the first matched element.','examples': [{'before': '<p>This is just a test.</p>','code': '$("p").width();','result': '"300px"'}],'name': 'width','params': [],'short': 'Get the current CSS width of the first matched element.','type': 'String'},{'desc': 'Set the CSS width of every matched element. Be sure to include the "px" (or other unit of measurement) after the number that you specify, otherwise you might get strange results.','examples': [{'before': '<p>This is just a test.</p>','code': '$("p").width("20px");','result': '<p style="width:20px;">This is just a test.</p>'}],'name': 'width','params': [{'desc': 'Set the CSS property to the specified value.','name': 'val','type': 'String'}],'short': 'Set the CSS width of every matched element.','type': 'jQuery'},{'desc': 'Get the current CSS height of the first matched element.','examples': [{'before': '<p>This is just a test.</p>','code': '$("p").height();','result': '"14px"'}],'name': 'height','params': [],'short': 'Get the current CSS height of the first matched element.','type': 'String'},{'desc': 'Set the CSS height of every matched element. Be sure to include the "px" (or other unit of measurement) after the number that you specify, otherwise you might get strange results.','examples': [{'before': '<p>This is just a test.</p>','code': '$("p").height("20px");','result': '<p style="height:20px;">This is just a test.</p>'}],'name': 'height','params': [{'desc': 'Set the CSS property to the specified value.','name': 'val','type': 'String'}],'short': 'Set the CSS height of every matched element.','type': 'jQuery'},{'desc': 'Get the current CSS top of the first matched element.','examples': [{'before': '<p>This is just a test.</p>','code': '$("p").top();','result': '"0px"'}],'name': 'top','params': [],'short': 'Get the current CSS top of the first matched element.','type': 'String'},{'desc': 'Set the CSS top of every matched element. Be sure to include the "px" (or other unit of measurement) after the number that you specify, otherwise you might get strange results.','examples': [{'before': '<p>This is just a test.</p>','code': '$("p").top("20px");','result': '<p style="top:20px;">This is just a test.</p>'}],'name': 'top','params': [{'desc': 'Set the CSS property to the specified value.','name': 'val','type': 'String'}],'short': 'Set the CSS top of every matched element.','type': 'jQuery'},{'desc': 'Get the current CSS left of the first matched element.','examples': [{'before': '<p>This is just a test.</p>','code': '$("p").left();','result': '"0px"'}],'name': 'left','params': [],'short': 'Get the current CSS left of the first matched element.','type': 'String'},{'desc': 'Set the CSS left of every matched element. Be sure to include the "px" (or other unit of measurement) after the number that you specify, otherwise you might get strange results.','examples': [{'before': '<p>This is just a test.</p>','code': '$("p").left("20px");','result': '<p style="left:20px;">This is just a test.</p>'}],'name': 'left','params': [{'desc': 'Set the CSS property to the specified value.','name': 'val','type': 'String'}],'short': 'Set the CSS left of every matched element.','type': 'jQuery'},{'desc': 'Get the current CSS position of the first matched element.','examples': [{'before': '<p>This is just a test.</p>','code': '$("p").position();','result': '"static"'}],'name': 'position','params': [],'short': 'Get the current CSS position of the first matched element.','type': 'String'},{'desc': 'Set the CSS position of every matched element.','examples': [{'before': '<p>This is just a test.</p>','code': '$("p").position("relative");','result': '<p style="position:relative;">This is just a test.</p>'}],'name': 'position','params': [{'desc': 'Set the CSS property to the specified value.','name': 'val','type': 'String'}],'short': 'Set the CSS position of every matched element.','type': 'jQuery'},{'desc': 'Get the current CSS float of the first matched element.','examples': [{'before': '<p>This is just a test.</p>','code': '$("p").float();','result': '"none"'}],'name': 'float','params': [],'short': 'Get the current CSS float of the first matched element.','type': 'String'},{'desc': 'Set the CSS float of every matched element.','examples': [{'before': '<p>This is just a test.</p>','code': '$("p").float("left");','result': '<p style="float:left;">This is just a test.</p>'}],'name': 'float','params': [{'desc': 'Set the CSS property to the specified value.','name': 'val','type': 'String'}],'short': 'Set the CSS float of every matched element.','type': 'jQuery'},{'desc': 'Get the current CSS overflow of the first matched element.','examples': [{'before': '<p>This is just a test.</p>','code': '$("p").overflow();','result': '"none"'}],'name': 'overflow','params': [],'short': 'Get the current CSS overflow of the first matched element.','type': 'String'},{'desc': 'Set the CSS overflow of every matched element.','examples': [{'before': '<p>This is just a test.</p>','code': '$("p").overflow("auto");','result': '<p style="overflow:auto;">This is just a test.</p>'}],'name': 'overflow','params': [{'desc': 'Set the CSS property to the specified value.','name': 'val','type': 'String'}],'short': 'Set the CSS overflow of every matched element.','type': 'jQuery'},{'desc': 'Get the current CSS color of the first matched element.','examples': [{'before': '<p>This is just a test.</p>','code': '$("p").color();','result': '"black"'}],'name': 'color','params': [],'short': 'Get the current CSS color of the first matched element.','type': 'String'},{'desc': 'Set the CSS color of every matched element.','examples': [{'before': '<p>This is just a test.</p>','code': '$("p").color("blue");','result': '<p style="color:blue;">This is just a test.</p>'}],'name': 'color','params': [{'desc': 'Set the CSS property to the specified value.','name': 'val','type': 'String'}],'short': 'Set the CSS color of every matched element.','type': 'jQuery'},{'desc': 'Get the current CSS background of the first matched element.','examples': [{'before': '<p>This is just a test.</p>','code': '$("p").background();','result': '""'}],'name': 'background','params': [],'short': 'Get the current CSS background of the first matched element.','type': 'String'},{'desc': 'Set the CSS background of every matched element.','examples': [{'before': '<p>This is just a test.</p>','code': '$("p").background("blue");','result': '<p style="background:blue;">This is just a test.</p>'}],'name': 'background','params': [{'desc': 'Set the CSS property to the specified value.','name': 'val','type': 'String'}],'short': 'Set the CSS background of every matched element.','type': 'jQuery'},{'desc': 'Get the current value of the first matched element.','examples': [{'before': '<input type="text" value="some text"/>','code': '$("input").val();','result': '"some text"'}],'name': 'val','params': [],'short': 'Get the current value of the first matched element.','type': 'String'},{'desc': 'Set the value of every matched element.','examples': [{'before': '<input type="text" value="some text"/>','code': '$("input").value("test");','result': '<input type="text" value="test"/>'}],'name': 'val','params': [{'desc': 'Set the property to the specified value.','name': 'val','type': 'String'}],'short': 'Set the value of every matched element.','type': 'jQuery'},{'desc': 'Get the html contents of the first matched element.','examples': [{'before': '<div><input/></div>','code': '$("div").html();','result': '<input/>'}],'name': 'html','params': [],'short': 'Get the html contents of the first matched element.','type': 'String'},{'desc': 'Set the html contents of every matched element.','examples': [{'before': '<div><input/></div>','code': '$("div").html("<b>new stuff</b>");','result': '<div><b>new stuff</b</div>'}],'name': 'html','params': [{'desc': 'Set the html contents to the specified value.','name': 'val','type': 'String'}],'short': 'Set the html contents of every matched element.','type': 'jQuery'},{'desc': 'Get the current id of the first matched element.','examples': [{'before': '<input type="text" id="test" value="some text"/>','code': '$("input").id();','result': '"test"'}],'name': 'id','params': [],'short': 'Get the current id of the first matched element.','type': 'String'},{'desc': 'Set the id of every matched element.','examples': [{'before': '<input type="text" id="test" value="some text"/>','code': '$("input").id("newid");','result': '<input type="text" id="newid" value="some text"/>'}],'name': 'id','params': [{'desc': 'Set the property to the specified value.','name': 'val','type': 'String'}],'short': 'Set the id of every matched element.','type': 'jQuery'},{'desc': 'Get the current title of the first matched element.','examples': [{'before': '<img src="test.jpg" title="my image"/>','code': '$("img").title();','result': '"my image"'}],'name': 'title','params': [],'short': 'Get the current title of the first matched element.','type': 'String'},{'desc': 'Set the title of every matched element.','examples': [{'before': '<img src="test.jpg" title="my image"/>','code': '$("img").title("new title");','result': '<img src="test.jpg" title="new image"/>'}],'name': 'title','params': [{'desc': 'Set the property to the specified value.','name': 'val','type': 'String'}],'short': 'Set the title of every matched element.','type': 'jQuery'},{'desc': 'Get the current name of the first matched element.','examples': [{'before': '<input type="text" name="username"/>','code': '$("input").name();','result': '"username"'}],'name': 'name','params': [],'short': 'Get the current name of the first matched element.','type': 'String'},{'desc': 'Set the name of every matched element.','examples': [{'before': '<input type="text" name="username"/>','code': '$("input").name("user");','result': '<input type="text" name="user"/>'}],'name': 'name','params': [{'desc': 'Set the property to the specified value.','name': 'val','type': 'String'}],'short': 'Set the name of every matched element.','type': 'jQuery'},{'desc': 'Get the current href of the first matched element.','examples': [{'before': '<a href="test.html">my link</a>','code': '$("a").href();','result': '"test.html"'}],'name': 'href','params': [],'short': 'Get the current href of the first matched element.','type': 'String'},{'desc': 'Set the href of every matched element.','examples': [{'before': '<a href="test.html">my link</a>','code': '$("a").href("test2.html");','result': '<a href="test2.html">my link</a>'}],'name': 'href','params': [{'desc': 'Set the property to the specified value.','name': 'val','type': 'String'}],'short': 'Set the href of every matched element.','type': 'jQuery'},{'desc': 'Get the current src of the first matched element.','examples': [{'before': '<img src="test.jpg" title="my image"/>','code': '$("img").src();','result': '"test.jpg"'}],'name': 'src','params': [],'short': 'Get the current src of the first matched element.','type': 'String'},{'desc': 'Set the src of every matched element.','examples': [{'before': '<img src="test.jpg" title="my image"/>','code': '$("img").src("test2.jpg");','result': '<img src="test2.jpg" title="my image"/>'}],'name': 'src','params': [{'desc': 'Set the property to the specified value.','name': 'val','type': 'String'}],'short': 'Set the src of every matched element.','type': 'jQuery'},{'desc': 'Get the current rel of the first matched element.','examples': [{'before': '<a href="test.html" rel="nofollow">my link</a>','code': '$("a").rel();','result': '"nofollow"'}],'name': 'rel','params': [],'short': 'Get the current rel of the first matched element.','type': 'String'},{'desc': 'Set the rel of every matched element.','examples': [{'before': '<a href="test.html">my link</a>','code': '$("a").rel("nofollow");','result': '<a href="test.html" rel="nofollow">my link</a>'}],'name': 'rel','params': [{'desc': 'Set the property to the specified value.','name': 'val','type': 'String'}],'short': 'Set the rel of every matched element.','type': 'jQuery'},{'desc': 'Get a set of elements containing the unique parents of the matched set of elements.','examples': [{'before': '<div><p>Hello</p><p>Hello</p></div>','code': '$("p").parent()','result': '[ <div><p>Hello</p><p>Hello</p></div> ]'}],'name': 'parent','params': [],'short': 'Get a set of elements containing the unique parents of the matched set of elements.','type': 'jQuery'},{'desc': 'Get a set of elements containing the unique parents of the matched set of elements, and filtered by an expression.','examples': [{'before': '<div><p>Hello</p></div><div class="selected"><p>Hello Again</p></div>','code': '$("p").parent(".selected")','result': '[ <div class="selected"><p>Hello Again</p></div> ]'}],'name': 'parent','params': [{'desc': 'An expression to filter the parents with','name': 'expr','type': 'String'}],'short': 'Get a set of elements containing the unique parents of the matched set of elements, and filtered by an expression.','type': 'jQuery'},{'desc': 'Get a set of elements containing the unique ancestors of the matched set of elements.','examples': [{'before': '<html><body><div><p><span>Hello</span></p><span>Hello Again</span></div></body></html>','code': '$("span").ancestors()','result': '[ <body>...</body>, <div>...</div>, <p><span>Hello</span></p> ]'}],'name': 'ancestors','params': [],'short': 'Get a set of elements containing the unique ancestors of the matched set of elements.','type': 'jQuery'},{'desc': 'Get a set of elements containing the unique ancestors of the matched set of elements, and filtered by an expression.','examples': [{'before': '<html><body><div><p><span>Hello</span></p><span>Hello Again</span></div></body></html>','code': '$("span").ancestors("p")','result': '[ <p><span>Hello</span></p> ]'}],'name': 'ancestors','params': [{'desc': 'An expression to filter the ancestors with','name': 'expr','type': 'String'}],'short': 'Get a set of elements containing the unique ancestors of the matched set of elements, and filtered by an expression.','type': 'jQuery'},{'desc': 'Get a set of elements containing the unique ancestors of the matched set of elements.','examples': [{'before': '<html><body><div><p><span>Hello</span></p><span>Hello Again</span></div></body></html>','code': '$("span").ancestors()','result': '[ <body>...</body>, <div>...</div>, <p><span>Hello</span></p> ]'}],'name': 'parents','params': [],'short': 'Get a set of elements containing the unique ancestors of the matched set of elements.','type': 'jQuery'},{'desc': 'Get a set of elements containing the unique ancestors of the matched set of elements, and filtered by an expression.','examples': [{'before': '<html><body><div><p><span>Hello</span></p><span>Hello Again</span></div></body></html>','code': '$("span").ancestors("p")','result': '[ <p><span>Hello</span></p> ]'}],'name': 'parents','params': [{'desc': 'An expression to filter the ancestors with','name': 'expr','type': 'String'}],'short': 'Get a set of elements containing the unique ancestors of the matched set of elements, and filtered by an expression.','type': 'jQuery'},{'desc': 'Get a set of elements containing the unique next siblings of each of the matched set of elements.

    It only returns the very next sibling, not all next siblings.','examples': [{'before': '<p>Hello</p><p>Hello Again</p><div><span>And Again</span></div>','code': '$("p").next()','result': '[ <p>Hello Again</p>, <div><span>And Again</span></div> ]'}],'name': 'next','params': [],'short': 'Get a set of elements containing the unique next siblings of each of the matched set of elements.','type': 'jQuery'},{'desc': 'Get a set of elements containing the unique next siblings of each of the matched set of elements, and filtered by an expression.

    It only returns the very next sibling, not all next siblings.','examples': [{'before': '<p>Hello</p><p class="selected">Hello Again</p><div><span>And Again</span></div>','code': '$("p").next(".selected")','result': '[ <p class="selected">Hello Again</p> ]'}],'name': 'next','params': [{'desc': 'An expression to filter the next Elements with','name': 'expr','type': 'String'}],'short': 'Get a set of elements containing the unique next siblings of each of the matched set of elements, and filtered by an expression.','type': 'jQuery'},{'desc': 'Get a set of elements containing the unique previous siblings of each of the matched set of elements.

    It only returns the immediately previous sibling, not all previous siblings.','examples': [{'before': '<p>Hello</p><div><span>Hello Again</span></div><p>And Again</p>','code': '$("p").previous()','result': '[ <div><span>Hello Again</span></div> ]'}],'name': 'prev','params': [],'short': 'Get a set of elements containing the unique previous siblings of each of the matched set of elements.','type': 'jQuery'},{'desc': 'Get a set of elements containing the unique previous siblings of each of the matched set of elements, and filtered by an expression.

    It only returns the immediately previous sibling, not all previous siblings.','examples': [{'before': '<div><span>Hello</span></div><p class="selected">Hello Again</p><p>And Again</p>','code': '$("p").previous(".selected")','result': '[ <div><span>Hello</span></div> ]'}],'name': 'prev','params': [{'desc': 'An expression to filter the previous Elements with','name': 'expr','type': 'String'}],'short': 'Get a set of elements containing the unique previous siblings of each of the matched set of elements, and filtered by an expression.','type': 'jQuery'},{'desc': 'Get a set of elements containing all of the unique siblings of each of the matched set of elements.','examples': [{'before': '<p>Hello</p><div><span>Hello Again</span></div><p>And Again</p>','code': '$("div").siblings()','result': '[ <p>Hello</p>, <p>And Again</p> ]'}],'name': 'siblings','params': [],'short': 'Get a set of elements containing all of the unique siblings of each of the matched set of elements.','type': 'jQuery'},{'desc': 'Get a set of elements containing all of the unique siblings of each of the matched set of elements, and filtered by an expression.','examples': [{'before': '<div><span>Hello</span></div><p class="selected">Hello Again</p><p>And Again</p>','code': '$("div").siblings(".selected")','result': '[ <p class="selected">Hello Again</p> ]'}],'name': 'siblings','params': [{'desc': 'An expression to filter the sibling Elements with','name': 'expr','type': 'String'}],'short': 'Get a set of elements containing all of the unique siblings of each of the matched set of elements, and filtered by an expression.','type': 'jQuery'},{'desc': 'Get a set of elements containing all of the unique children of each of the matched set of elements.','examples': [{'before': '<p>Hello</p><div><span>Hello Again</span></div><p>And Again</p>','code': '$("div").children()','result': '[ <span>Hello Again</span> ]'}],'name': 'children','params': [],'short': 'Get a set of elements containing all of the unique children of each of the matched set of elements.','type': 'jQuery'},{'desc': 'Get a set of elements containing all of the unique siblings of each of the matched set of elements, and filtered by an expression.','examples': [{'before': '<div><span>Hello</span><p class="selected">Hello Again</p><p>And Again</p></div>','code': '$("div").children(".selected")','result': '[ <p class="selected">Hello Again</p> ]'}],'name': 'children','params': [{'desc': 'An expression to filter the child Elements with','name': 'expr','type': 'String'}],'short': 'Get a set of elements containing all of the unique siblings of each of the matched set of elements, and filtered by an expression.','type': 'jQuery'},{'desc': 'Displays each of the set of matched elements if they are hidden.','examples': [{'before': '<p style="display: none">Hello</p>','code': '$("p").show()','result': '[ <p style="display: block">Hello</p> ]'}],'name': 'show','params': [],'short': 'Displays each of the set of matched elements if they are hidden.','type': 'jQuery'},{'desc': 'Hides each of the set of matched elements if they are shown.','examples': [{'before': '<p>Hello</p>','code': '$("p").hide()','result': '[ <p style="display: none">Hello</p> ]'}],'name': 'hide','params': [],'short': 'Hides each of the set of matched elements if they are shown.','type': 'jQuery'},{'desc': 'Toggles each of the set of matched elements. If they are shown, toggle makes them hidden. If they are hidden, toggle makes them shown.','examples': [{'before': '<p>Hello</p><p style="display: none">Hello Again</p>','code': '$("p").toggle()','result': '[ <p style="display: none">Hello</p>, <p style="display: block">Hello Again</p> ]'}],'name': 'toggle','params': [],'short': 'Toggles each of the set of matched elements.','type': 'jQuery'},{'desc': 'Adds the specified class to each of the set of matched elements.','examples': [{'before': '<p>Hello</p>','code': '("p").addClass("selected")','result': '[ <p class="selected">Hello</p> ]'}],'name': 'addClass','params': [{'desc': 'A CSS class to add to the elements','name': 'class','type': 'String'}],'short': 'Adds the specified class to each of the set of matched elements.','type': 'jQuery'},{'desc': 'The opposite of addClass. Removes the specified class from the set of matched elements.','examples': [{'before': '<p class="selected">Hello</p>','code': '("p").removeClass("selected")','result': '[ <p>Hello</p> ]'}],'name': 'removeClass','params': [{'desc': 'A CSS class to remove from the elements','name': 'class','type': 'String'}],'short': 'The opposite of addClass.','type': 'jQuery'},{'desc': 'Adds the specified class if it is present. Remove it if it is not present.','examples': [{'before': '<p>Hello</p><p class="selected">Hello Again</p>','code': '("p").toggleClass("selected")','result': '[ <p class="selected">Hello</p>, <p>Hello Again</p> ]'}],'name': 'toggleClass','params': [{'desc': 'A CSS class with which to toggle the elements','name': 'class','type': 'String'}],'short': 'Adds the specified class if it is present.','type': 'jQuery'},{'desc': 'Removes all child nodes from the set of matched elements.','examples': [{'before': '<p>Hello, <span>Person</span> <a href="#">and person</a></p>','code': '("p").empty()','result': '[ <p></p> ]'}],'name': 'empty','params': [],'short': 'Removes all child nodes from the set of matched elements.','type': 'jQuery'},{'desc': 'Binds a particular event (like click) to a each of a set of match elements.','examples': [{'before': '<p>Hello</p>','code': '$("p").bind( "click", function() { alert("Hello"); } )','result': '[ <p>Hello</p> ]  Cancel a default action and prevent it from bubbling by returning false
    from your function.'},{'code': '$("form").bind( "submit", function() { return false; } )  Cancel a default action by using the preventDefault method.'},{'code': '$("form").bind( "submit", function() { e.preventDefault(); } )  Stop an event from bubbling by using the stopPropogation method.'},{'code': '$("form").bind( "submit", function() { e.stopPropogation(); } )'}],'name': 'bind','params': [{'desc': 'An event type','name': 'type','type': 'String'},{'desc': 'A function to bind to the event on each of the set of matched elements','name': 'fn','type': 'Function'}],'short': 'Binds a particular event (like click) to a each of a set of match elements.','type': 'jQuery'},{'desc': 'The opposite of bind, removes a bound event from each of the matched elements. You must pass the identical function that was used in the original bind method.','examples': [{'before': '<p onclick="alert(\'Hello\');">Hello</p>','code': '$("p").unbind( "click", function() { alert("Hello"); } )','result': '[ <p>Hello</p> ]'}],'name': 'unbind','params': [{'desc': 'An event type','name': 'type','type': 'String'},{'desc': 'A function to unbind from the event on each of the set of matched elements','name': 'fn','type': 'Function'}],'short': 'The opposite of bind, removes a bound event from each of the matched elements.','type': 'jQuery'},{'desc': 'Removes all bound events of a particular type from each of the matched elements.','examples': [{'before': '<p onclick="alert(\'Hello\');">Hello</p>','code': '$("p").unbind( "click" )','result': '[ <p>Hello</p> ]'}],'name': 'unbind','params': [{'desc': 'An event type','name': 'type','type': 'String'}],'short': 'Removes all bound events of a particular type from each of the matched elements.','type': 'jQuery'},{'desc': 'Removes all bound events from each of the matched elements.','examples': [{'before': '<p onclick="alert(\'Hello\');">Hello</p>','code': '$("p").unbind()','result': '[ <p>Hello</p> ]'}],'name': 'unbind','params': [],'short': 'Removes all bound events from each of the matched elements.','type': 'jQuery'},{'desc': 'Trigger a type of event on every matched element.','examples': [{'before': '<p click="alert(\'hello\')">Hello</p>','code': '$("p").trigger("click")','result': 'alert(\'hello\')'}],'name': 'trigger','params': [{'desc': 'An event type to trigger.','name': 'type','type': 'String'}],'short': 'Trigger a type of event on every matched element.','type': 'jQuery'},{'desc': 'Toggle between two function calls every other click. Whenever a matched element is clicked, the first specified function is fired, when clicked again, the second is fired. All subsequent clicks continue to rotate through the two functions.','examples': [{'code': '$("p").toggle(function(){   $(this).addClass("selected");
    },function(){   $(this).removeClass("selected");
    });'}],'name': 'toggle','params': [{'desc': 'The function to execute on every even click.','name': 'even','type': 'Function'},{'desc': 'The function to execute on every odd click.','name': 'odd','type': 'Function'}],'short': 'Toggle between two function calls every other click.','type': 'jQuery'},{'desc': 'A method for simulating hovering (moving the mouse on, and off, an object). This is a custom method which provides an \'in\' to a frequent task.

    Whenever the mouse cursor is moved over a matched element, the first specified function is fired. Whenever the mouse moves off of the element, the second specified function fires. Additionally, checks are in place to see if the mouse is still within the specified element itself (for example, an image inside of a div), and if it is, it will continue to \'hover\', and not move out (a common error in using a mouseout event handler).','examples': [{'code': '$("p").hover(function(){   $(this).addClass("over");
    },function(){   $(this).addClass("out");
    });'}],'name': 'hover','params': [{'desc': 'The function to fire whenever the mouse is moved over a matched element.','name': 'over','type': 'Function'},{'desc': 'The function to fire whenever the mouse is moved off of a matched element.','name': 'out','type': 'Function'}],'short': 'A method for simulating hovering (moving the mouse on, and off, an object).','type': 'jQuery'},{'desc': 'Bind a function to be executed whenever the DOM is ready to be traversed and manipulated. This is probably the most important function included in the event module, as it can greatly improve the response times of your web applications.

    In a nutshell, this is a solid replacement for using window.onload, and attaching a function to that. By using this method, your bound Function will be called the instant the DOM is ready to be read and manipulated, which is exactly what 99.99% of all Javascript code needs to run.

    Please ensure you have no code in your onload event handler, otherwise $(document).ready() may not fire.','examples': [{'code': '$(document).ready(function(){ Your code here... });'}],'name': 'ready','params': [{'desc': 'The function to be executed when the DOM is ready.','name': 'fn','type': 'Function'}],'short': 'Bind a function to be executed whenever the DOM is ready to be traversed and manipulated.','type': 'jQuery'},{'desc': 'Bind a function to the blur event of each matched element.','examples': [{'before': '<p>Hello</p>','code': '$("p").blur( function() { alert("Hello"); } );','result': '<p onblur="alert(\'Hello\');">Hello</p>'}],'name': 'blur','params': [{'desc': 'A function to bind to the blur event on each of the matched elements.','name': 'fn','type': 'Function'}],'short': 'Bind a function to the blur event of each matched element.','type': 'jQuery'},{'desc': 'Trigger the blur event of each matched element. This causes all of the functions that have been bound to thet blur event to be executed.','examples': [{'before': '<p onblur="alert(\'Hello\');">Hello</p>','code': '$("p").blur();','result': 'alert(\'Hello\');'}],'name': 'blur','params': [],'short': 'Trigger the blur event of each matched element.','type': 'jQuery'},{'desc': 'Bind a function to the blur event of each matched element, which will only be executed once. Unlike a call to the normal .blur() method, calling .oneblur() causes the bound function to be only executed the first time it is triggered, and never again (unless it is re-bound).','examples': [{'before': '<p onblur="alert(\'Hello\');">Hello</p>','code': '$("p").oneblur( function() { alert("Hello"); } );','result': 'alert(\'Hello\'); // Only executed for the first blur'}],'name': 'oneblur','params': [{'desc': 'A function to bind to the blur event on each of the matched elements.','name': 'fn','type': 'Function'}],'short': 'Bind a function to the blur event of each matched element, which will only be executed once.','type': 'jQuery'},{'desc': 'Removes a bound blur event from each of the matched elements. You must pass the identical function that was used in the original bind method.','examples': [{'before': '<p onblur="myFunction">Hello</p>','code': '$("p").unblur( myFunction );','result': '<p>Hello</p>'}],'name': 'unblur','params': [{'desc': 'A function to unbind from the blur event on each of the matched elements.','name': 'fn','type': 'Function'}],'short': 'Removes a bound blur event from each of the matched elements.','type': 'jQuery'},{'desc': 'Removes all bound blur events from each of the matched elements.','examples': [{'before': '<p onblur="alert(\'Hello\');">Hello</p>','code': '$("p").unblur();','result': '<p>Hello</p>'}],'name': 'unblur','params': [],'short': 'Removes all bound blur events from each of the matched elements.','type': 'jQuery'},{'desc': 'Bind a function to the focus event of each matched element.','examples': [{'before': '<p>Hello</p>','code': '$("p").focus( function() { alert("Hello"); } );','result': '<p onfocus="alert(\'Hello\');">Hello</p>'}],'name': 'focus','params': [{'desc': 'A function to bind to the focus event on each of the matched elements.','name': 'fn','type': 'Function'}],'short': 'Bind a function to the focus event of each matched element.','type': 'jQuery'},{'desc': 'Trigger the focus event of each matched element. This causes all of the functions that have been bound to thet focus event to be executed.','examples': [{'before': '<p onfocus="alert(\'Hello\');">Hello</p>','code': '$("p").focus();','result': 'alert(\'Hello\');'}],'name': 'focus','params': [],'short': 'Trigger the focus event of each matched element.','type': 'jQuery'},{'desc': 'Bind a function to the focus event of each matched element, which will only be executed once. Unlike a call to the normal .focus() method, calling .onefocus() causes the bound function to be only executed the first time it is triggered, and never again (unless it is re-bound).','examples': [{'before': '<p onfocus="alert(\'Hello\');">Hello</p>','code': '$("p").onefocus( function() { alert("Hello"); } );','result': 'alert(\'Hello\'); // Only executed for the first focus'}],'name': 'onefocus','params': [{'desc': 'A function to bind to the focus event on each of the matched elements.','name': 'fn','type': 'Function'}],'short': 'Bind a function to the focus event of each matched element, which will only be executed once.','type': 'jQuery'},{'desc': 'Removes a bound focus event from each of the matched elements. You must pass the identical function that was used in the original bind method.','examples': [{'before': '<p onfocus="myFunction">Hello</p>','code': '$("p").unfocus( myFunction );','result': '<p>Hello</p>'}],'name': 'unfocus','params': [{'desc': 'A function to unbind from the focus event on each of the matched elements.','name': 'fn','type': 'Function'}],'short': 'Removes a bound focus event from each of the matched elements.','type': 'jQuery'},{'desc': 'Removes all bound focus events from each of the matched elements.','examples': [{'before': '<p onfocus="alert(\'Hello\');">Hello</p>','code': '$("p").unfocus();','result': '<p>Hello</p>'}],'name': 'unfocus','params': [],'short': 'Removes all bound focus events from each of the matched elements.','type': 'jQuery'},{'desc': 'Bind a function to the load event of each matched element.','examples': [{'before': '<p>Hello</p>','code': '$("p").load( function() { alert("Hello"); } );','result': '<p onload="alert(\'Hello\');">Hello</p>'}],'name': 'load','params': [{'desc': 'A function to bind to the load event on each of the matched elements.','name': 'fn','type': 'Function'}],'short': 'Bind a function to the load event of each matched element.','type': 'jQuery'},{'desc': 'Trigger the load event of each matched element. This causes all of the functions that have been bound to thet load event to be executed.','examples': [{'before': '<p onload="alert(\'Hello\');">Hello</p>','code': '$("p").load();','result': 'alert(\'Hello\');'}],'name': 'load','params': [],'short': 'Trigger the load event of each matched element.','type': 'jQuery'},{'desc': 'Bind a function to the load event of each matched element, which will only be executed once. Unlike a call to the normal .load() method, calling .oneload() causes the bound function to be only executed the first time it is triggered, and never again (unless it is re-bound).','examples': [{'before': '<p onload="alert(\'Hello\');">Hello</p>','code': '$("p").oneload( function() { alert("Hello"); } );','result': 'alert(\'Hello\'); // Only executed for the first load'}],'name': 'oneload','params': [{'desc': 'A function to bind to the load event on each of the matched elements.','name': 'fn','type': 'Function'}],'short': 'Bind a function to the load event of each matched element, which will only be executed once.','type': 'jQuery'},{'desc': 'Removes a bound load event from each of the matched elements. You must pass the identical function that was used in the original bind method.','examples': [{'before': '<p onload="myFunction">Hello</p>','code': '$("p").unload( myFunction );','result': '<p>Hello</p>'}],'name': 'unload','params': [{'desc': 'A function to unbind from the load event on each of the matched elements.','name': 'fn','type': 'Function'}],'short': 'Removes a bound load event from each of the matched elements.','type': 'jQuery'},{'desc': 'Removes all bound load events from each of the matched elements.','examples': [{'before': '<p onload="alert(\'Hello\');">Hello</p>','code': '$("p").unload();','result': '<p>Hello</p>'}],'name': 'unload','params': [],'short': 'Removes all bound load events from each of the matched elements.','type': 'jQuery'},{'desc': 'Bind a function to the resize event of each matched element.','examples': [{'before': '<p>Hello</p>','code': '$("p").resize( function() { alert("Hello"); } );','result': '<p onresize="alert(\'Hello\');">Hello</p>'}],'name': 'resize','params': [{'desc': 'A function to bind to the resize event on each of the matched elements.','name': 'fn','type': 'Function'}],'short': 'Bind a function to the resize event of each matched element.','type': 'jQuery'},{'desc': 'Trigger the resize event of each matched element. This causes all of the functions that have been bound to thet resize event to be executed.','examples': [{'before': '<p onresize="alert(\'Hello\');">Hello</p>','code': '$("p").resize();','result': 'alert(\'Hello\');'}],'name': 'resize','params': [],'short': 'Trigger the resize event of each matched element.','type': 'jQuery'},{'desc': 'Bind a function to the resize event of each matched element, which will only be executed once. Unlike a call to the normal .resize() method, calling .oneresize() causes the bound function to be only executed the first time it is triggered, and never again (unless it is re-bound).','examples': [{'before': '<p onresize="alert(\'Hello\');">Hello</p>','code': '$("p").oneresize( function() { alert("Hello"); } );','result': 'alert(\'Hello\'); // Only executed for the first resize'}],'name': 'oneresize','params': [{'desc': 'A function to bind to the resize event on each of the matched elements.','name': 'fn','type': 'Function'}],'short': 'Bind a function to the resize event of each matched element, which will only be executed once.','type': 'jQuery'},{'desc': 'Removes a bound resize event from each of the matched elements. You must pass the identical function that was used in the original bind method.','examples': [{'before': '<p onresize="myFunction">Hello</p>','code': '$("p").unresize( myFunction );','result': '<p>Hello</p>'}],'name': 'unresize','params': [{'desc': 'A function to unbind from the resize event on each of the matched elements.','name': 'fn','type': 'Function'}],'short': 'Removes a bound resize event from each of the matched elements.','type': 'jQuery'},{'desc': 'Removes all bound resize events from each of the matched elements.','examples': [{'before': '<p onresize="alert(\'Hello\');">Hello</p>','code': '$("p").unresize();','result': '<p>Hello</p>'}],'name': 'unresize','params': [],'short': 'Removes all bound resize events from each of the matched elements.','type': 'jQuery'},{'desc': 'Bind a function to the scroll event of each matched element.','examples': [{'before': '<p>Hello</p>','code': '$("p").scroll( function() { alert("Hello"); } );','result': '<p onscroll="alert(\'Hello\');">Hello</p>'}],'name': 'scroll','params': [{'desc': 'A function to bind to the scroll event on each of the matched elements.','name': 'fn','type': 'Function'}],'short': 'Bind a function to the scroll event of each matched element.','type': 'jQuery'},{'desc': 'Trigger the scroll event of each matched element. This causes all of the functions that have been bound to thet scroll event to be executed.','examples': [{'before': '<p onscroll="alert(\'Hello\');">Hello</p>','code': '$("p").scroll();','result': 'alert(\'Hello\');'}],'name': 'scroll','params': [],'short': 'Trigger the scroll event of each matched element.','type': 'jQuery'},{'desc': 'Bind a function to the scroll event of each matched element, which will only be executed once. Unlike a call to the normal .scroll() method, calling .onescroll() causes the bound function to be only executed the first time it is triggered, and never again (unless it is re-bound).','examples': [{'before': '<p onscroll="alert(\'Hello\');">Hello</p>','code': '$("p").onescroll( function() { alert("Hello"); } );','result': 'alert(\'Hello\'); // Only executed for the first scroll'}],'name': 'onescroll','params': [{'desc': 'A function to bind to the scroll event on each of the matched elements.','name': 'fn','type': 'Function'}],'short': 'Bind a function to the scroll event of each matched element, which will only be executed once.','type': 'jQuery'},{'desc': 'Removes a bound scroll event from each of the matched elements. You must pass the identical function that was used in the original bind method.','examples': [{'before': '<p onscroll="myFunction">Hello</p>','code': '$("p").unscroll( myFunction );','result': '<p>Hello</p>'}],'name': 'unscroll','params': [{'desc': 'A function to unbind from the scroll event on each of the matched elements.','name': 'fn','type': 'Function'}],'short': 'Removes a bound scroll event from each of the matched elements.','type': 'jQuery'},{'desc': 'Removes all bound scroll events from each of the matched elements.','examples': [{'before': '<p onscroll="alert(\'Hello\');">Hello</p>','code': '$("p").unscroll();','result': '<p>Hello</p>'}],'name': 'unscroll','params': [],'short': 'Removes all bound scroll events from each of the matched elements.','type': 'jQuery'},{'desc': 'Bind a function to the unload event of each matched element.','examples': [{'before': '<p>Hello</p>','code': '$("p").unload( function() { alert("Hello"); } );','result': '<p onunload="alert(\'Hello\');">Hello</p>'}],'name': 'unload','params': [{'desc': 'A function to bind to the unload event on each of the matched elements.','name': 'fn','type': 'Function'}],'short': 'Bind a function to the unload event of each matched element.','type': 'jQuery'},{'desc': 'Trigger the unload event of each matched element. This causes all of the functions that have been bound to thet unload event to be executed.','examples': [{'before': '<p onunload="alert(\'Hello\');">Hello</p>','code': '$("p").unload();','result': 'alert(\'Hello\');'}],'name': 'unload','params': [],'short': 'Trigger the unload event of each matched element.','type': 'jQuery'},{'desc': 'Bind a function to the unload event of each matched element, which will only be executed once. Unlike a call to the normal .unload() method, calling .oneunload() causes the bound function to be only executed the first time it is triggered, and never again (unless it is re-bound).','examples': [{'before': '<p onunload="alert(\'Hello\');">Hello</p>','code': '$("p").oneunload( function() { alert("Hello"); } );','result': 'alert(\'Hello\'); // Only executed for the first unload'}],'name': 'oneunload','params': [{'desc': 'A function to bind to the unload event on each of the matched elements.','name': 'fn','type': 'Function'}],'short': 'Bind a function to the unload event of each matched element, which will only be executed once.','type': 'jQuery'},{'desc': 'Removes a bound unload event from each of the matched elements. You must pass the identical function that was used in the original bind method.','examples': [{'before': '<p onunload="myFunction">Hello</p>','code': '$("p").ununload( myFunction );','result': '<p>Hello</p>'}],'name': 'ununload','params': [{'desc': 'A function to unbind from the unload event on each of the matched elements.','name': 'fn','type': 'Function'}],'short': 'Removes a bound unload event from each of the matched elements.','type': 'jQuery'},{'desc': 'Removes all bound unload events from each of the matched elements.','examples': [{'before': '<p onunload="alert(\'Hello\');">Hello</p>','code': '$("p").ununload();','result': '<p>Hello</p>'}],'name': 'ununload','params': [],'short': 'Removes all bound unload events from each of the matched elements.','type': 'jQuery'},{'desc': 'Bind a function to the click event of each matched element.','examples': [{'before': '<p>Hello</p>','code': '$("p").click( function() { alert("Hello"); } );','result': '<p onclick="alert(\'Hello\');">Hello</p>'}],'name': 'click','params': [{'desc': 'A function to bind to the click event on each of the matched elements.','name': 'fn','type': 'Function'}],'short': 'Bind a function to the click event of each matched element.','type': 'jQuery'},{'desc': 'Trigger the click event of each matched element. This causes all of the functions that have been bound to thet click event to be executed.','examples': [{'before': '<p onclick="alert(\'Hello\');">Hello</p>','code': '$("p").click();','result': 'alert(\'Hello\');'}],'name': 'click','params': [],'short': 'Trigger the click event of each matched element.','type': 'jQuery'},{'desc': 'Bind a function to the click event of each matched element, which will only be executed once. Unlike a call to the normal .click() method, calling .oneclick() causes the bound function to be only executed the first time it is triggered, and never again (unless it is re-bound).','examples': [{'before': '<p onclick="alert(\'Hello\');">Hello</p>','code': '$("p").oneclick( function() { alert("Hello"); } );','result': 'alert(\'Hello\'); // Only executed for the first click'}],'name': 'oneclick','params': [{'desc': 'A function to bind to the click event on each of the matched elements.','name': 'fn','type': 'Function'}],'short': 'Bind a function to the click event of each matched element, which will only be executed once.','type': 'jQuery'},{'desc': 'Removes a bound click event from each of the matched elements. You must pass the identical function that was used in the original bind method.','examples': [{'before': '<p onclick="myFunction">Hello</p>','code': '$("p").unclick( myFunction );','result': '<p>Hello</p>'}],'name': 'unclick','params': [{'desc': 'A function to unbind from the click event on each of the matched elements.','name': 'fn','type': 'Function'}],'short': 'Removes a bound click event from each of the matched elements.','type': 'jQuery'},{'desc': 'Removes all bound click events from each of the matched elements.','examples': [{'before': '<p onclick="alert(\'Hello\');">Hello</p>','code': '$("p").unclick();','result': '<p>Hello</p>'}],'name': 'unclick','params': [],'short': 'Removes all bound click events from each of the matched elements.','type': 'jQuery'},{'desc': 'Bind a function to the dblclick event of each matched element.','examples': [{'before': '<p>Hello</p>','code': '$("p").dblclick( function() { alert("Hello"); } );','result': '<p ondblclick="alert(\'Hello\');">Hello</p>'}],'name': 'dblclick','params': [{'desc': 'A function to bind to the dblclick event on each of the matched elements.','name': 'fn','type': 'Function'}],'short': 'Bind a function to the dblclick event of each matched element.','type': 'jQuery'},{'desc': 'Trigger the dblclick event of each matched element. This causes all of the functions that have been bound to thet dblclick event to be executed.','examples': [{'before': '<p ondblclick="alert(\'Hello\');">Hello</p>','code': '$("p").dblclick();','result': 'alert(\'Hello\');'}],'name': 'dblclick','params': [],'short': 'Trigger the dblclick event of each matched element.','type': 'jQuery'},{'desc': 'Bind a function to the dblclick event of each matched element, which will only be executed once. Unlike a call to the normal .dblclick() method, calling .onedblclick() causes the bound function to be only executed the first time it is triggered, and never again (unless it is re-bound).','examples': [{'before': '<p ondblclick="alert(\'Hello\');">Hello</p>','code': '$("p").onedblclick( function() { alert("Hello"); } );','result': 'alert(\'Hello\'); // Only executed for the first dblclick'}],'name': 'onedblclick','params': [{'desc': 'A function to bind to the dblclick event on each of the matched elements.','name': 'fn','type': 'Function'}],'short': 'Bind a function to the dblclick event of each matched element, which will only be executed once.','type': 'jQuery'},{'desc': 'Removes a bound dblclick event from each of the matched elements. You must pass the identical function that was used in the original bind method.','examples': [{'before': '<p ondblclick="myFunction">Hello</p>','code': '$("p").undblclick( myFunction );','result': '<p>Hello</p>'}],'name': 'undblclick','params': [{'desc': 'A function to unbind from the dblclick event on each of the matched elements.','name': 'fn','type': 'Function'}],'short': 'Removes a bound dblclick event from each of the matched elements.','type': 'jQuery'},{'desc': 'Removes all bound dblclick events from each of the matched elements.','examples': [{'before': '<p ondblclick="alert(\'Hello\');">Hello</p>','code': '$("p").undblclick();','result': '<p>Hello</p>'}],'name': 'undblclick','params': [],'short': 'Removes all bound dblclick events from each of the matched elements.','type': 'jQuery'},{'desc': 'Bind a function to the mousedown event of each matched element.','examples': [{'before': '<p>Hello</p>','code': '$("p").mousedown( function() { alert("Hello"); } );','result': '<p onmousedown="alert(\'Hello\');">Hello</p>'}],'name': 'mousedown','params': [{'desc': 'A function to bind to the mousedown event on each of the matched elements.','name': 'fn','type': 'Function'}],'short': 'Bind a function to the mousedown event of each matched element.','type': 'jQuery'},{'desc': 'Trigger the mousedown event of each matched element. This causes all of the functions that have been bound to thet mousedown event to be executed.','examples': [{'before': '<p onmousedown="alert(\'Hello\');">Hello</p>','code': '$("p").mousedown();','result': 'alert(\'Hello\');'}],'name': 'mousedown','params': [],'short': 'Trigger the mousedown event of each matched element.','type': 'jQuery'},{'desc': 'Bind a function to the mousedown event of each matched element, which will only be executed once. Unlike a call to the normal .mousedown() method, calling .onemousedown() causes the bound function to be only executed the first time it is triggered, and never again (unless it is re-bound).','examples': [{'before': '<p onmousedown="alert(\'Hello\');">Hello</p>','code': '$("p").onemousedown( function() { alert("Hello"); } );','result': 'alert(\'Hello\'); // Only executed for the first mousedown'}],'name': 'onemousedown','params': [{'desc': 'A function to bind to the mousedown event on each of the matched elements.','name': 'fn','type': 'Function'}],'short': 'Bind a function to the mousedown event of each matched element, which will only be executed once.','type': 'jQuery'},{'desc': 'Removes a bound mousedown event from each of the matched elements. You must pass the identical function that was used in the original bind method.','examples': [{'before': '<p onmousedown="myFunction">Hello</p>','code': '$("p").unmousedown( myFunction );','result': '<p>Hello</p>'}],'name': 'unmousedown','params': [{'desc': 'A function to unbind from the mousedown event on each of the matched elements.','name': 'fn','type': 'Function'}],'short': 'Removes a bound mousedown event from each of the matched elements.','type': 'jQuery'},{'desc': 'Removes all bound mousedown events from each of the matched elements.','examples': [{'before': '<p onmousedown="alert(\'Hello\');">Hello</p>','code': '$("p").unmousedown();','result': '<p>Hello</p>'}],'name': 'unmousedown','params': [],'short': 'Removes all bound mousedown events from each of the matched elements.','type': 'jQuery'},{'desc': 'Bind a function to the mouseup event of each matched element.','examples': [{'before': '<p>Hello</p>','code': '$("p").mouseup( function() { alert("Hello"); } );','result': '<p onmouseup="alert(\'Hello\');">Hello</p>'}],'name': 'mouseup','params': [{'desc': 'A function to bind to the mouseup event on each of the matched elements.','name': 'fn','type': 'Function'}],'short': 'Bind a function to the mouseup event of each matched element.','type': 'jQuery'},{'desc': 'Trigger the mouseup event of each matched element. This causes all of the functions that have been bound to thet mouseup event to be executed.','examples': [{'before': '<p onmouseup="alert(\'Hello\');">Hello</p>','code': '$("p").mouseup();','result': 'alert(\'Hello\');'}],'name': 'mouseup','params': [],'short': 'Trigger the mouseup event of each matched element.','type': 'jQuery'},{'desc': 'Bind a function to the mouseup event of each matched element, which will only be executed once. Unlike a call to the normal .mouseup() method, calling .onemouseup() causes the bound function to be only executed the first time it is triggered, and never again (unless it is re-bound).','examples': [{'before': '<p onmouseup="alert(\'Hello\');">Hello</p>','code': '$("p").onemouseup( function() { alert("Hello"); } );','result': 'alert(\'Hello\'); // Only executed for the first mouseup'}],'name': 'onemouseup','params': [{'desc': 'A function to bind to the mouseup event on each of the matched elements.','name': 'fn','type': 'Function'}],'short': 'Bind a function to the mouseup event of each matched element, which will only be executed once.','type': 'jQuery'},{'desc': 'Removes a bound mouseup event from each of the matched elements. You must pass the identical function that was used in the original bind method.','examples': [{'before': '<p onmouseup="myFunction">Hello</p>','code': '$("p").unmouseup( myFunction );','result': '<p>Hello</p>'}],'name': 'unmouseup','params': [{'desc': 'A function to unbind from the mouseup event on each of the matched elements.','name': 'fn','type': 'Function'}],'short': 'Removes a bound mouseup event from each of the matched elements.','type': 'jQuery'},{'desc': 'Removes all bound mouseup events from each of the matched elements.','examples': [{'before': '<p onmouseup="alert(\'Hello\');">Hello</p>','code': '$("p").unmouseup();','result': '<p>Hello</p>'}],'name': 'unmouseup','params': [],'short': 'Removes all bound mouseup events from each of the matched elements.','type': 'jQuery'},{'desc': 'Bind a function to the mousemove event of each matched element.','examples': [{'before': '<p>Hello</p>','code': '$("p").mousemove( function() { alert("Hello"); } );','result': '<p onmousemove="alert(\'Hello\');">Hello</p>'}],'name': 'mousemove','params': [{'desc': 'A function to bind to the mousemove event on each of the matched elements.','name': 'fn','type': 'Function'}],'short': 'Bind a function to the mousemove event of each matched element.','type': 'jQuery'},{'desc': 'Trigger the mousemove event of each matched element. This causes all of the functions that have been bound to thet mousemove event to be executed.','examples': [{'before': '<p onmousemove="alert(\'Hello\');">Hello</p>','code': '$("p").mousemove();','result': 'alert(\'Hello\');'}],'name': 'mousemove','params': [],'short': 'Trigger the mousemove event of each matched element.','type': 'jQuery'},{'desc': 'Bind a function to the mousemove event of each matched element, which will only be executed once. Unlike a call to the normal .mousemove() method, calling .onemousemove() causes the bound function to be only executed the first time it is triggered, and never again (unless it is re-bound).','examples': [{'before': '<p onmousemove="alert(\'Hello\');">Hello</p>','code': '$("p").onemousemove( function() { alert("Hello"); } );','result': 'alert(\'Hello\'); // Only executed for the first mousemove'}],'name': 'onemousemove','params': [{'desc': 'A function to bind to the mousemove event on each of the matched elements.','name': 'fn','type': 'Function'}],'short': 'Bind a function to the mousemove event of each matched element, which will only be executed once.','type': 'jQuery'},{'desc': 'Removes a bound mousemove event from each of the matched elements. You must pass the identical function that was used in the original bind method.','examples': [{'before': '<p onmousemove="myFunction">Hello</p>','code': '$("p").unmousemove( myFunction );','result': '<p>Hello</p>'}],'name': 'unmousemove','params': [{'desc': 'A function to unbind from the mousemove event on each of the matched elements.','name': 'fn','type': 'Function'}],'short': 'Removes a bound mousemove event from each of the matched elements.','type': 'jQuery'},{'desc': 'Removes all bound mousemove events from each of the matched elements.','examples': [{'before': '<p onmousemove="alert(\'Hello\');">Hello</p>','code': '$("p").unmousemove();','result': '<p>Hello</p>'}],'name': 'unmousemove','params': [],'short': 'Removes all bound mousemove events from each of the matched elements.','type': 'jQuery'},{'desc': 'Bind a function to the mouseover event of each matched element.','examples': [{'before': '<p>Hello</p>','code': '$("p").mouseover( function() { alert("Hello"); } );','result': '<p onmouseover="alert(\'Hello\');">Hello</p>'}],'name': 'mouseover','params': [{'desc': 'A function to bind to the mouseover event on each of the matched elements.','name': 'fn','type': 'Function'}],'short': 'Bind a function to the mouseover event of each matched element.','type': 'jQuery'},{'desc': 'Trigger the mouseover event of each matched element. This causes all of the functions that have been bound to thet mouseover event to be executed.','examples': [{'before': '<p onmouseover="alert(\'Hello\');">Hello</p>','code': '$("p").mouseover();','result': 'alert(\'Hello\');'}],'name': 'mouseover','params': [],'short': 'Trigger the mouseover event of each matched element.','type': 'jQuery'},{'desc': 'Bind a function to the mouseover event of each matched element, which will only be executed once. Unlike a call to the normal .mouseover() method, calling .onemouseover() causes the bound function to be only executed the first time it is triggered, and never again (unless it is re-bound).','examples': [{'before': '<p onmouseover="alert(\'Hello\');">Hello</p>','code': '$("p").onemouseover( function() { alert("Hello"); } );','result': 'alert(\'Hello\'); // Only executed for the first mouseover'}],'name': 'onemouseover','params': [{'desc': 'A function to bind to the mouseover event on each of the matched elements.','name': 'fn','type': 'Function'}],'short': 'Bind a function to the mouseover event of each matched element, which will only be executed once.','type': 'jQuery'},{'desc': 'Removes a bound mouseover event from each of the matched elements. You must pass the identical function that was used in the original bind method.','examples': [{'before': '<p onmouseover="myFunction">Hello</p>','code': '$("p").unmouseover( myFunction );','result': '<p>Hello</p>'}],'name': 'unmouseover','params': [{'desc': 'A function to unbind from the mouseover event on each of the matched elements.','name': 'fn','type': 'Function'}],'short': 'Removes a bound mouseover event from each of the matched elements.','type': 'jQuery'},{'desc': 'Removes all bound mouseover events from each of the matched elements.','examples': [{'before': '<p onmouseover="alert(\'Hello\');">Hello</p>','code': '$("p").unmouseover();','result': '<p>Hello</p>'}],'name': 'unmouseover','params': [],'short': 'Removes all bound mouseover events from each of the matched elements.','type': 'jQuery'},{'desc': 'Bind a function to the mouseout event of each matched element.','examples': [{'before': '<p>Hello</p>','code': '$("p").mouseout( function() { alert("Hello"); } );','result': '<p onmouseout="alert(\'Hello\');">Hello</p>'}],'name': 'mouseout','params': [{'desc': 'A function to bind to the mouseout event on each of the matched elements.','name': 'fn','type': 'Function'}],'short': 'Bind a function to the mouseout event of each matched element.','type': 'jQuery'},{'desc': 'Trigger the mouseout event of each matched element. This causes all of the functions that have been bound to thet mouseout event to be executed.','examples': [{'before': '<p onmouseout="alert(\'Hello\');">Hello</p>','code': '$("p").mouseout();','result': 'alert(\'Hello\');'}],'name': 'mouseout','params': [],'short': 'Trigger the mouseout event of each matched element.','type': 'jQuery'},{'desc': 'Bind a function to the mouseout event of each matched element, which will only be executed once. Unlike a call to the normal .mouseout() method, calling .onemouseout() causes the bound function to be only executed the first time it is triggered, and never again (unless it is re-bound).','examples': [{'before': '<p onmouseout="alert(\'Hello\');">Hello</p>','code': '$("p").onemouseout( function() { alert("Hello"); } );','result': 'alert(\'Hello\'); // Only executed for the first mouseout'}],'name': 'onemouseout','params': [{'desc': 'A function to bind to the mouseout event on each of the matched elements.','name': 'fn','type': 'Function'}],'short': 'Bind a function to the mouseout event of each matched element, which will only be executed once.','type': 'jQuery'},{'desc': 'Removes a bound mouseout event from each of the matched elements. You must pass the identical function that was used in the original bind method.','examples': [{'before': '<p onmouseout="myFunction">Hello</p>','code': '$("p").unmouseout( myFunction );','result': '<p>Hello</p>'}],'name': 'unmouseout','params': [{'desc': 'A function to unbind from the mouseout event on each of the matched elements.','name': 'fn','type': 'Function'}],'short': 'Removes a bound mouseout event from each of the matched elements.','type': 'jQuery'},{'desc': 'Removes all bound mouseout events from each of the matched elements.','examples': [{'before': '<p onmouseout="alert(\'Hello\');">Hello</p>','code': '$("p").unmouseout();','result': '<p>Hello</p>'}],'name': 'unmouseout','params': [],'short': 'Removes all bound mouseout events from each of the matched elements.','type': 'jQuery'},{'desc': 'Bind a function to the change event of each matched element.','examples': [{'before': '<p>Hello</p>','code': '$("p").change( function() { alert("Hello"); } );','result': '<p onchange="alert(\'Hello\');">Hello</p>'}],'name': 'change','params': [{'desc': 'A function to bind to the change event on each of the matched elements.','name': 'fn','type': 'Function'}],'short': 'Bind a function to the change event of each matched element.','type': 'jQuery'},{'desc': 'Trigger the change event of each matched element. This causes all of the functions that have been bound to thet change event to be executed.','examples': [{'before': '<p onchange="alert(\'Hello\');">Hello</p>','code': '$("p").change();','result': 'alert(\'Hello\');'}],'name': 'change','params': [],'short': 'Trigger the change event of each matched element.','type': 'jQuery'},{'desc': 'Bind a function to the change event of each matched element, which will only be executed once. Unlike a call to the normal .change() method, calling .onechange() causes the bound function to be only executed the first time it is triggered, and never again (unless it is re-bound).','examples': [{'before': '<p onchange="alert(\'Hello\');">Hello</p>','code': '$("p").onechange( function() { alert("Hello"); } );','result': 'alert(\'Hello\'); // Only executed for the first change'}],'name': 'onechange','params': [{'desc': 'A function to bind to the change event on each of the matched elements.','name': 'fn','type': 'Function'}],'short': 'Bind a function to the change event of each matched element, which will only be executed once.','type': 'jQuery'},{'desc': 'Removes a bound change event from each of the matched elements. You must pass the identical function that was used in the original bind method.','examples': [{'before': '<p onchange="myFunction">Hello</p>','code': '$("p").unchange( myFunction );','result': '<p>Hello</p>'}],'name': 'unchange','params': [{'desc': 'A function to unbind from the change event on each of the matched elements.','name': 'fn','type': 'Function'}],'short': 'Removes a bound change event from each of the matched elements.','type': 'jQuery'},{'desc': 'Removes all bound change events from each of the matched elements.','examples': [{'before': '<p onchange="alert(\'Hello\');">Hello</p>','code': '$("p").unchange();','result': '<p>Hello</p>'}],'name': 'unchange','params': [],'short': 'Removes all bound change events from each of the matched elements.','type': 'jQuery'},{'desc': 'Bind a function to the reset event of each matched element.','examples': [{'before': '<p>Hello</p>','code': '$("p").reset( function() { alert("Hello"); } );','result': '<p onreset="alert(\'Hello\');">Hello</p>'}],'name': 'reset','params': [{'desc': 'A function to bind to the reset event on each of the matched elements.','name': 'fn','type': 'Function'}],'short': 'Bind a function to the reset event of each matched element.','type': 'jQuery'},{'desc': 'Trigger the reset event of each matched element. This causes all of the functions that have been bound to thet reset event to be executed.','examples': [{'before': '<p onreset="alert(\'Hello\');">Hello</p>','code': '$("p").reset();','result': 'alert(\'Hello\');'}],'name': 'reset','params': [],'short': 'Trigger the reset event of each matched element.','type': 'jQuery'},{'desc': 'Bind a function to the reset event of each matched element, which will only be executed once. Unlike a call to the normal .reset() method, calling .onereset() causes the bound function to be only executed the first time it is triggered, and never again (unless it is re-bound).','examples': [{'before': '<p onreset="alert(\'Hello\');">Hello</p>','code': '$("p").onereset( function() { alert("Hello"); } );','result': 'alert(\'Hello\'); // Only executed for the first reset'}],'name': 'onereset','params': [{'desc': 'A function to bind to the reset event on each of the matched elements.','name': 'fn','type': 'Function'}],'short': 'Bind a function to the reset event of each matched element, which will only be executed once.','type': 'jQuery'},{'desc': 'Removes a bound reset event from each of the matched elements. You must pass the identical function that was used in the original bind method.','examples': [{'before': '<p onreset="myFunction">Hello</p>','code': '$("p").unreset( myFunction );','result': '<p>Hello</p>'}],'name': 'unreset','params': [{'desc': 'A function to unbind from the reset event on each of the matched elements.','name': 'fn','type': 'Function'}],'short': 'Removes a bound reset event from each of the matched elements.','type': 'jQuery'},{'desc': 'Removes all bound reset events from each of the matched elements.','examples': [{'before': '<p onreset="alert(\'Hello\');">Hello</p>','code': '$("p").unreset();','result': '<p>Hello</p>'}],'name': 'unreset','params': [],'short': 'Removes all bound reset events from each of the matched elements.','type': 'jQuery'},{'desc': 'Bind a function to the select event of each matched element.','examples': [{'before': '<p>Hello</p>','code': '$("p").select( function() { alert("Hello"); } );','result': '<p onselect="alert(\'Hello\');">Hello</p>'}],'name': 'select','params': [{'desc': 'A function to bind to the select event on each of the matched elements.','name': 'fn','type': 'Function'}],'short': 'Bind a function to the select event of each matched element.','type': 'jQuery'},{'desc': 'Trigger the select event of each matched element. This causes all of the functions that have been bound to thet select event to be executed.','examples': [{'before': '<p onselect="alert(\'Hello\');">Hello</p>','code': '$("p").select();','result': 'alert(\'Hello\');'}],'name': 'select','params': [],'short': 'Trigger the select event of each matched element.','type': 'jQuery'},{'desc': 'Bind a function to the select event of each matched element, which will only be executed once. Unlike a call to the normal .select() method, calling .oneselect() causes the bound function to be only executed the first time it is triggered, and never again (unless it is re-bound).','examples': [{'before': '<p onselect="alert(\'Hello\');">Hello</p>','code': '$("p").oneselect( function() { alert("Hello"); } );','result': 'alert(\'Hello\'); // Only executed for the first select'}],'name': 'oneselect','params': [{'desc': 'A function to bind to the select event on each of the matched elements.','name': 'fn','type': 'Function'}],'short': 'Bind a function to the select event of each matched element, which will only be executed once.','type': 'jQuery'},{'desc': 'Removes a bound select event from each of the matched elements. You must pass the identical function that was used in the original bind method.','examples': [{'before': '<p onselect="myFunction">Hello</p>','code': '$("p").unselect( myFunction );','result': '<p>Hello</p>'}],'name': 'unselect','params': [{'desc': 'A function to unbind from the select event on each of the matched elements.','name': 'fn','type': 'Function'}],'short': 'Removes a bound select event from each of the matched elements.','type': 'jQuery'},{'desc': 'Removes all bound select events from each of the matched elements.','examples': [{'before': '<p onselect="alert(\'Hello\');">Hello</p>','code': '$("p").unselect();','result': '<p>Hello</p>'}],'name': 'unselect','params': [],'short': 'Removes all bound select events from each of the matched elements.','type': 'jQuery'},{'desc': 'Bind a function to the submit event of each matched element.','examples': [{'before': '<p>Hello</p>','code': '$("p").submit( function() { alert("Hello"); } );','result': '<p onsubmit="alert(\'Hello\');">Hello</p>'}],'name': 'submit','params': [{'desc': 'A function to bind to the submit event on each of the matched elements.','name': 'fn','type': 'Function'}],'short': 'Bind a function to the submit event of each matched element.','type': 'jQuery'},{'desc': 'Trigger the submit event of each matched element. This causes all of the functions that have been bound to thet submit event to be executed.','examples': [{'before': '<p onsubmit="alert(\'Hello\');">Hello</p>','code': '$("p").submit();','result': 'alert(\'Hello\');'}],'name': 'submit','params': [],'short': 'Trigger the submit event of each matched element.','type': 'jQuery'},{'desc': 'Bind a function to the submit event of each matched element, which will only be executed once. Unlike a call to the normal .submit() method, calling .onesubmit() causes the bound function to be only executed the first time it is triggered, and never again (unless it is re-bound).','examples': [{'before': '<p onsubmit="alert(\'Hello\');">Hello</p>','code': '$("p").onesubmit( function() { alert("Hello"); } );','result': 'alert(\'Hello\'); // Only executed for the first submit'}],'name': 'onesubmit','params': [{'desc': 'A function to bind to the submit event on each of the matched elements.','name': 'fn','type': 'Function'}],'short': 'Bind a function to the submit event of each matched element, which will only be executed once.','type': 'jQuery'},{'desc': 'Removes a bound submit event from each of the matched elements. You must pass the identical function that was used in the original bind method.','examples': [{'before': '<p onsubmit="myFunction">Hello</p>','code': '$("p").unsubmit( myFunction );','result': '<p>Hello</p>'}],'name': 'unsubmit','params': [{'desc': 'A function to unbind from the submit event on each of the matched elements.','name': 'fn','type': 'Function'}],'short': 'Removes a bound submit event from each of the matched elements.','type': 'jQuery'},{'desc': 'Removes all bound submit events from each of the matched elements.','examples': [{'before': '<p onsubmit="alert(\'Hello\');">Hello</p>','code': '$("p").unsubmit();','result': '<p>Hello</p>'}],'name': 'unsubmit','params': [],'short': 'Removes all bound submit events from each of the matched elements.','type': 'jQuery'},{'desc': 'Bind a function to the keydown event of each matched element.','examples': [{'before': '<p>Hello</p>','code': '$("p").keydown( function() { alert("Hello"); } );','result': '<p onkeydown="alert(\'Hello\');">Hello</p>'}],'name': 'keydown','params': [{'desc': 'A function to bind to the keydown event on each of the matched elements.','name': 'fn','type': 'Function'}],'short': 'Bind a function to the keydown event of each matched element.','type': 'jQuery'},{'desc': 'Trigger the keydown event of each matched element. This causes all of the functions that have been bound to thet keydown event to be executed.','examples': [{'before': '<p onkeydown="alert(\'Hello\');">Hello</p>','code': '$("p").keydown();','result': 'alert(\'Hello\');'}],'name': 'keydown','params': [],'short': 'Trigger the keydown event of each matched element.','type': 'jQuery'},{'desc': 'Bind a function to the keydown event of each matched element, which will only be executed once. Unlike a call to the normal .keydown() method, calling .onekeydown() causes the bound function to be only executed the first time it is triggered, and never again (unless it is re-bound).','examples': [{'before': '<p onkeydown="alert(\'Hello\');">Hello</p>','code': '$("p").onekeydown( function() { alert("Hello"); } );','result': 'alert(\'Hello\'); // Only executed for the first keydown'}],'name': 'onekeydown','params': [{'desc': 'A function to bind to the keydown event on each of the matched elements.','name': 'fn','type': 'Function'}],'short': 'Bind a function to the keydown event of each matched element, which will only be executed once.','type': 'jQuery'},{'desc': 'Removes a bound keydown event from each of the matched elements. You must pass the identical function that was used in the original bind method.','examples': [{'before': '<p onkeydown="myFunction">Hello</p>','code': '$("p").unkeydown( myFunction );','result': '<p>Hello</p>'}],'name': 'unkeydown','params': [{'desc': 'A function to unbind from the keydown event on each of the matched elements.','name': 'fn','type': 'Function'}],'short': 'Removes a bound keydown event from each of the matched elements.','type': 'jQuery'},{'desc': 'Removes all bound keydown events from each of the matched elements.','examples': [{'before': '<p onkeydown="alert(\'Hello\');">Hello</p>','code': '$("p").unkeydown();','result': '<p>Hello</p>'}],'name': 'unkeydown','params': [],'short': 'Removes all bound keydown events from each of the matched elements.','type': 'jQuery'},{'desc': 'Bind a function to the keypress event of each matched element.','examples': [{'before': '<p>Hello</p>','code': '$("p").keypress( function() { alert("Hello"); } );','result': '<p onkeypress="alert(\'Hello\');">Hello</p>'}],'name': 'keypress','params': [{'desc': 'A function to bind to the keypress event on each of the matched elements.','name': 'fn','type': 'Function'}],'short': 'Bind a function to the keypress event of each matched element.','type': 'jQuery'},{'desc': 'Trigger the keypress event of each matched element. This causes all of the functions that have been bound to thet keypress event to be executed.','examples': [{'before': '<p onkeypress="alert(\'Hello\');">Hello</p>','code': '$("p").keypress();','result': 'alert(\'Hello\');'}],'name': 'keypress','params': [],'short': 'Trigger the keypress event of each matched element.','type': 'jQuery'},{'desc': 'Bind a function to the keypress event of each matched element, which will only be executed once. Unlike a call to the normal .keypress() method, calling .onekeypress() causes the bound function to be only executed the first time it is triggered, and never again (unless it is re-bound).','examples': [{'before': '<p onkeypress="alert(\'Hello\');">Hello</p>','code': '$("p").onekeypress( function() { alert("Hello"); } );','result': 'alert(\'Hello\'); // Only executed for the first keypress'}],'name': 'onekeypress','params': [{'desc': 'A function to bind to the keypress event on each of the matched elements.','name': 'fn','type': 'Function'}],'short': 'Bind a function to the keypress event of each matched element, which will only be executed once.','type': 'jQuery'},{'desc': 'Removes a bound keypress event from each of the matched elements. You must pass the identical function that was used in the original bind method.','examples': [{'before': '<p onkeypress="myFunction">Hello</p>','code': '$("p").unkeypress( myFunction );','result': '<p>Hello</p>'}],'name': 'unkeypress','params': [{'desc': 'A function to unbind from the keypress event on each of the matched elements.','name': 'fn','type': 'Function'}],'short': 'Removes a bound keypress event from each of the matched elements.','type': 'jQuery'},{'desc': 'Removes all bound keypress events from each of the matched elements.','examples': [{'before': '<p onkeypress="alert(\'Hello\');">Hello</p>','code': '$("p").unkeypress();','result': '<p>Hello</p>'}],'name': 'unkeypress','params': [],'short': 'Removes all bound keypress events from each of the matched elements.','type': 'jQuery'},{'desc': 'Bind a function to the keyup event of each matched element.','examples': [{'before': '<p>Hello</p>','code': '$("p").keyup( function() { alert("Hello"); } );','result': '<p onkeyup="alert(\'Hello\');">Hello</p>'}],'name': 'keyup','params': [{'desc': 'A function to bind to the keyup event on each of the matched elements.','name': 'fn','type': 'Function'}],'short': 'Bind a function to the keyup event of each matched element.','type': 'jQuery'},{'desc': 'Trigger the keyup event of each matched element. This causes all of the functions that have been bound to thet keyup event to be executed.','examples': [{'before': '<p onkeyup="alert(\'Hello\');">Hello</p>','code': '$("p").keyup();','result': 'alert(\'Hello\');'}],'name': 'keyup','params': [],'short': 'Trigger the keyup event of each matched element.','type': 'jQuery'},{'desc': 'Bind a function to the keyup event of each matched element, which will only be executed once. Unlike a call to the normal .keyup() method, calling .onekeyup() causes the bound function to be only executed the first time it is triggered, and never again (unless it is re-bound).','examples': [{'before': '<p onkeyup="alert(\'Hello\');">Hello</p>','code': '$("p").onekeyup( function() { alert("Hello"); } );','result': 'alert(\'Hello\'); // Only executed for the first keyup'}],'name': 'onekeyup','params': [{'desc': 'A function to bind to the keyup event on each of the matched elements.','name': 'fn','type': 'Function'}],'short': 'Bind a function to the keyup event of each matched element, which will only be executed once.','type': 'jQuery'},{'desc': 'Removes a bound keyup event from each of the matched elements. You must pass the identical function that was used in the original bind method.','examples': [{'before': '<p onkeyup="myFunction">Hello</p>','code': '$("p").unkeyup( myFunction );','result': '<p>Hello</p>'}],'name': 'unkeyup','params': [{'desc': 'A function to unbind from the keyup event on each of the matched elements.','name': 'fn','type': 'Function'}],'short': 'Removes a bound keyup event from each of the matched elements.','type': 'jQuery'},{'desc': 'Removes all bound keyup events from each of the matched elements.','examples': [{'before': '<p onkeyup="alert(\'Hello\');">Hello</p>','code': '$("p").unkeyup();','result': '<p>Hello</p>'}],'name': 'unkeyup','params': [],'short': 'Removes all bound keyup events from each of the matched elements.','type': 'jQuery'},{'desc': 'Bind a function to the error event of each matched element.','examples': [{'before': '<p>Hello</p>','code': '$("p").error( function() { alert("Hello"); } );','result': '<p onerror="alert(\'Hello\');">Hello</p>'}],'name': 'error','params': [{'desc': 'A function to bind to the error event on each of the matched elements.','name': 'fn','type': 'Function'}],'short': 'Bind a function to the error event of each matched element.','type': 'jQuery'},{'desc': 'Trigger the error event of each matched element. This causes all of the functions that have been bound to thet error event to be executed.','examples': [{'before': '<p onerror="alert(\'Hello\');">Hello</p>','code': '$("p").error();','result': 'alert(\'Hello\');'}],'name': 'error','params': [],'short': 'Trigger the error event of each matched element.','type': 'jQuery'},{'desc': 'Bind a function to the error event of each matched element, which will only be executed once. Unlike a call to the normal .error() method, calling .oneerror() causes the bound function to be only executed the first time it is triggered, and never again (unless it is re-bound).','examples': [{'before': '<p onerror="alert(\'Hello\');">Hello</p>','code': '$("p").oneerror( function() { alert("Hello"); } );','result': 'alert(\'Hello\'); // Only executed for the first error'}],'name': 'oneerror','params': [{'desc': 'A function to bind to the error event on each of the matched elements.','name': 'fn','type': 'Function'}],'short': 'Bind a function to the error event of each matched element, which will only be executed once.','type': 'jQuery'},{'desc': 'Removes a bound error event from each of the matched elements. You must pass the identical function that was used in the original bind method.','examples': [{'before': '<p onerror="myFunction">Hello</p>','code': '$("p").unerror( myFunction );','result': '<p>Hello</p>'}],'name': 'unerror','params': [{'desc': 'A function to unbind from the error event on each of the matched elements.','name': 'fn','type': 'Function'}],'short': 'Removes a bound error event from each of the matched elements.','type': 'jQuery'},{'desc': 'Removes all bound error events from each of the matched elements.','examples': [{'before': '<p onerror="alert(\'Hello\');">Hello</p>','code': '$("p").unerror();','result': '<p>Hello</p>'}],'name': 'unerror','params': [],'short': 'Removes all bound error events from each of the matched elements.','type': 'jQuery'},{'desc': 'Show all matched elements using a graceful animation. The height, width, and opacity of each of the matched elements are changed dynamically according to the specified speed.','examples': [{'code': '$("p").show("slow");'}],'name': 'show','params': [{'desc': 'A string representing one of the three predefined speeds ("slow", "normal", or "fast") or the number of milliseconds to run the animation (e.g. 1000).','name': 'speed','type': 'Object'}],'short': 'Show all matched elements using a graceful animation.','type': 'jQuery'},{'desc': 'Show all matched elements using a graceful animation and firing a callback function after completion. The height, width, and opacity of each of the matched elements are changed dynamically according to the specified speed.','examples': [{'code': '$("p").show("slow",function(){   alert("Animation Done.");
    });'}],'name': 'show','params': [{'desc': 'A string representing one of the three predefined speeds ("slow", "normal", or "fast") or the number of milliseconds to run the animation (e.g. 1000).','name': 'speed','type': 'Object'},{'desc': 'A function to be executed whenever the animation completes.','name': 'callback','type': 'Function'}],'short': 'Show all matched elements using a graceful animation and firing a callback function after completion.','type': 'jQuery'},{'desc': 'Hide all matched elements using a graceful animation. The height, width, and opacity of each of the matched elements are changed dynamically according to the specified speed.','examples': [{'code': '$("p").hide("slow");'}],'name': 'hide','params': [{'desc': 'A string representing one of the three predefined speeds ("slow", "normal", or "fast") or the number of milliseconds to run the animation (e.g. 1000).','name': 'speed','type': 'Object'}],'short': 'Hide all matched elements using a graceful animation.','type': 'jQuery'},{'desc': 'Hide all matched elements using a graceful animation and firing a callback function after completion. The height, width, and opacity of each of the matched elements are changed dynamically according to the specified speed.','examples': [{'code': '$("p").hide("slow",function(){   alert("Animation Done.");
    });'}],'name': 'hide','params': [{'desc': 'A string representing one of the three predefined speeds ("slow", "normal", or "fast") or the number of milliseconds to run the animation (e.g. 1000).','name': 'speed','type': 'Object'},{'desc': 'A function to be executed whenever the animation completes.','name': 'callback','type': 'Function'}],'short': 'Hide all matched elements using a graceful animation and firing a callback function after completion.','type': 'jQuery'},{'desc': 'Reveal all matched elements by adjusting their height. Only the height is adjusted for this animation, causing all matched elements to be revealed in a "sliding" manner.','examples': [{'code': '$("p").slideDown("slow");'}],'name': 'slideDown','params': [{'desc': 'A string representing one of the three predefined speeds ("slow", "normal", or "fast") or the number of milliseconds to run the animation (e.g. 1000).','name': 'speed','type': 'Object'}],'short': 'Reveal all matched elements by adjusting their height.','type': 'jQuery'},{'desc': 'Reveal all matched elements by adjusting their height and firing a callback function after completion. Only the height is adjusted for this animation, causing all matched elements to be revealed in a "sliding" manner.','examples': [{'code': '$("p").slideDown("slow",function(){   alert("Animation Done.");
    });'}],'name': 'slideDown','params': [{'desc': 'A string representing one of the three predefined speeds ("slow", "normal", or "fast") or the number of milliseconds to run the animation (e.g. 1000).','name': 'speed','type': 'Object'},{'desc': 'A function to be executed whenever the animation completes.','name': 'callback','type': 'Function'}],'short': 'Reveal all matched elements by adjusting their height and firing a callback function after completion.','type': 'jQuery'},{'desc': 'Hide all matched elements by adjusting their height. Only the height is adjusted for this animation, causing all matched elements to be hidden in a "sliding" manner.','examples': [{'code': '$("p").slideUp("slow");'}],'name': 'slideUp','params': [{'desc': 'A string representing one of the three predefined speeds ("slow", "normal", or "fast") or the number of milliseconds to run the animation (e.g. 1000).','name': 'speed','type': 'Object'}],'short': 'Hide all matched elements by adjusting their height.','type': 'jQuery'},{'desc': 'Hide all matched elements by adjusting their height and firing a callback function after completion. Only the height is adjusted for this animation, causing all matched elements to be hidden in a "sliding" manner.','examples': [{'code': '$("p").slideUp("slow",function(){   alert("Animation Done.");
    });'}],'name': 'slideUp','params': [{'desc': 'A string representing one of the three predefined speeds ("slow", "normal", or "fast") or the number of milliseconds to run the animation (e.g. 1000).','name': 'speed','type': 'Object'},{'desc': 'A function to be executed whenever the animation completes.','name': 'callback','type': 'Function'}],'short': 'Hide all matched elements by adjusting their height and firing a callback function after completion.','type': 'jQuery'},{'desc': 'Fade in all matched elements by adjusting their opacity. Only the opacity is adjusted for this animation, meaning that all of the matched elements should already have some form of height and width associated with them.','examples': [{'code': '$("p").fadeIn("slow");'}],'name': 'fadeIn','params': [{'desc': 'A string representing one of the three predefined speeds ("slow", "normal", or "fast") or the number of milliseconds to run the animation (e.g. 1000).','name': 'speed','type': 'Object'}],'short': 'Fade in all matched elements by adjusting their opacity.','type': 'jQuery'},{'desc': 'Fade in all matched elements by adjusting their opacity and firing a callback function after completion. Only the opacity is adjusted for this animation, meaning that all of the matched elements should already have some form of height and width associated with them.','examples': [{'code': '$("p").fadeIn("slow",function(){   alert("Animation Done.");
    });'}],'name': 'fadeIn','params': [{'desc': 'A string representing one of the three predefined speeds ("slow", "normal", or "fast") or the number of milliseconds to run the animation (e.g. 1000).','name': 'speed','type': 'Object'},{'desc': 'A function to be executed whenever the animation completes.','name': 'callback','type': 'Function'}],'short': 'Fade in all matched elements by adjusting their opacity and firing a callback function after completion.','type': 'jQuery'},{'desc': 'Fade out all matched elements by adjusting their opacity. Only the opacity is adjusted for this animation, meaning that all of the matched elements should already have some form of height and width associated with them.','examples': [{'code': '$("p").fadeOut("slow");'}],'name': 'fadeOut','params': [{'desc': 'A string representing one of the three predefined speeds ("slow", "normal", or "fast") or the number of milliseconds to run the animation (e.g. 1000).','name': 'speed','type': 'Object'}],'short': 'Fade out all matched elements by adjusting their opacity.','type': 'jQuery'},{'desc': 'Fade out all matched elements by adjusting their opacity and firing a callback function after completion. Only the opacity is adjusted for this animation, meaning that all of the matched elements should already have some form of height and width associated with them.','examples': [{'code': '$("p").fadeOut("slow",function(){   alert("Animation Done.");
    });'}],'name': 'fadeOut','params': [{'desc': 'A string representing one of the three predefined speeds ("slow", "normal", or "fast") or the number of milliseconds to run the animation (e.g. 1000).','name': 'speed','type': 'Object'},{'desc': 'A function to be executed whenever the animation completes.','name': 'callback','type': 'Function'}],'short': 'Fade out all matched elements by adjusting their opacity and firing a callback function after completion.','type': 'jQuery'},{'desc': 'Fade the opacity of all matched elements to a specified opacity. Only the opacity is adjusted for this animation, meaning that all of the matched elements should already have some form of height and width associated with them.','examples': [{'code': '$("p").fadeTo("slow", 0.5);'}],'name': 'fadeTo','params': [{'desc': 'A string representing one of the three predefined speeds ("slow", "normal", or "fast") or the number of milliseconds to run the animation (e.g. 1000).','name': 'speed','type': 'Object'},{'desc': 'The opacity to fade to (a number from 0 to 1).','name': 'opacity','type': 'Number'}],'short': 'Fade the opacity of all matched elements to a specified opacity.','type': 'jQuery'},{'desc': 'Fade the opacity of all matched elements to a specified opacity and firing a callback function after completion. Only the opacity is adjusted for this animation, meaning that all of the matched elements should already have some form of height and width associated with them.','examples': [{'code': '$("p").fadeTo("slow", 0.5, function(){   alert("Animation Done.");
    });'}],'name': 'fadeTo','params': [{'desc': 'A string representing one of the three predefined speeds ("slow", "normal", or "fast") or the number of milliseconds to run the animation (e.g. 1000).','name': 'speed','type': 'Object'},{'desc': 'The opacity to fade to (a number from 0 to 1).','name': 'opacity','type': 'Number'},{'desc': 'A function to be executed whenever the animation completes.','name': 'callback','type': 'Function'}],'short': 'Fade the opacity of all matched elements to a specified opacity and firing a callback function after completion.','type': 'jQuery'}]) \ No newline at end of file diff --git a/docs/jsont.js b/docs/jsont.js new file mode 100644 index 000000000..731911407 --- /dev/null +++ b/docs/jsont.js @@ -0,0 +1,58 @@ +function jsonT(self, rules) { + var T = { + output: false, + init: function() { + for (var rule in rules) + if (rule.substr(0,4) != "self") + rules["self."+rule] = rules[rule]; + return this; + }, + apply: function(expr) { + var trf = function(s){ return s.replace(/{([A-Za-z0-9_\$\.\[\]\'@\(\)]+)}/g, + function($0,$1){return T.processArg($1, expr);})}, + x = expr.replace(/\[[0-9]+\]/g, "[*]"), res; + if (x in rules) { + if (typeof(rules[x]) == "string") + res = trf(rules[x]); + else if (typeof(rules[x]) == "function") + res = trf(rules[x](eval(expr)).toString()); + } + else + res = T.eval(expr); + return res; + }, + processArg: function(arg, parentExpr) { + var expand = function(a,e){return (e=a.replace(/^\$/,e)).substr(0,4)!="self" ? ("self."+e) : e; }, + res = ""; + T.output = true; + if (arg.charAt(0) == "@") + res = eval(arg.replace(/@([A-za-z0-9_]+)\(([A-Za-z0-9_\$\.\[\]\']+)\)/, + function($0,$1,$2){return "rules['self."+$1+"']("+expand($2,parentExpr)+")";})); + else if (arg != "$") + res = T.apply(expand(arg, parentExpr)); + else + res = T.eval(parentExpr); + T.output = false; + return res; + }, + eval: function(expr) { + var v = eval(expr), res = ""; + if (typeof(v) != "undefined") { + if (v instanceof Array) { + for (var i=0; i tr" + }; + + return this.each(function(){ + var pagedUI = this; + var rows = $(types[this.nodeName], this); + var curPage = 0; + var names = [], num = []; + + if ( !step || step.constructor != Function ) { + step = step || 10; + + if (rows.length > step) + for ( var i = 0; i <= rows.length; i += step ) { + names.push( names.length + 1 ); + num.push( [ i * step, step ] ); + } + } else { + var last; + rows.each(function(){ + var l = step.apply( this ).substr(0,1); + if ( l != last ) { + names.push( l.toUpperCase() ); + var pre = num.length ? num[ num.length - 1 ][0] + num[ num.length - 1 ][1] : 0; + + num.push( [ pre, 0 ] ); + last = l; + } + + num[ num.length - 1 ][1]++; + }); + } + + if ( names.length ) { + var pager = $(""); + + for ( var i = 0; i < names.length; i++ ) + $("").rel( i ).html( names[i] ).click(function() { + return handleCrop( this.rel ); + }).wrap("
  • ").parent().appendTo(pager); + + pager.insertBefore( this ); + + var prev = $("« Prev").click(function(){ + return handleCrop( --curPage ); + }).wrap("").parent().prependTo(pager); + + var next = $("Next »").click(function(){ + return handleCrop( ++curPage ); + }).wrap("").parent().appendTo(pager); + + handleCrop( 0 ); + } + + function handleCrop( page ) { + curPage = page - 0; + var s = num[ curPage ][0]; + var e = s + num[ curPage ][1]; + + if ( !curPage ) prev.hide(); + else prev.show(); + + if ( curPage == names.length - 1 ) next.hide(); + else next.show(); + + $("li",pager) + .removeClass("cur") + .eq( curPage + 1 ) + .addClass("cur"); + + rows + .hide() + .gt(s - 1).lt(e) + .show() + .end().end(); + + if ( fn ) + fn.apply( pagedUI, [ s, e ] ); + + return false; + } + }); +}; diff --git a/docs/style.css b/docs/style.css new file mode 100644 index 000000000..783d942b1 --- /dev/null +++ b/docs/style.css @@ -0,0 +1,128 @@ +html, body { + background: #212121; + font-family: Arial; + font-size: 14px; + text-align: center; +} + +h1 { + margin: 15px auto; + text-align: left; + width: 600px; + color: #FFF; +} + +ul.nav-page { + margin: 15px auto; + width: 600px; + padding: 0; + list-style: none; + position: relative; +} + +ul.nav-page li { + padding: 0 3px; + display: inline; +} + +ul.nav-page li.cur a { + font-weight: bold; + font-size: 16px; +} + +ul.nav-page li a { + font-size: 14px; + color: #FFF; +} + +ul.nav-page li.prev { + position: absolute; + top: 0px; + left: 0px; +} + +ul.nav-page li.next { + position: absolute; + top: 0px; + right: 0px; +} + +ul.nav-page li.next a, ul.nav-page li.prev a { + font-size: 16px; + font-weight: bold; +} + +ul#docs { + list-style: none; + margin: 0 auto; + padding: 5px; + width: 600px; + background: #FFF; + text-align: left; +} + +ul#docs li { + margin: 5px 0; +} + +ul#docs li span.tooltip { + border-bottom: 1px dashed #666; +} + +ul#docs li a.name { + font-weight: bold; + text-decoration: none; +} + +ul#docs li span.type { + display: block; + float: left; + color: #666; + width: 100px; + margin-right: 10px; + font-size: 12px; + line-height: 18px; + font-family: Courier; + text-align: right; +} + +ul#docs li span.arg-type { + color: #666; +} + +ul#docs li div.short { + font-size: 12px; + color: #666; + margin-left: 110px; + margin-top: 5px; +} + +ul#docs span.fn { + font-family: Courier; +} + +ul#docs div.tooltipdemo { + font-size: 12px; + font-family: Arial; +} + +ul#docs li div.more { + display: none; + margin-left: 110px; + margin-top: 5px; +} + +ul#docs li div.example { + overflow: auto; +} + +ul#docs li div.example h5 { + font-size: 16px; +} + +ul#docs li div.example pre { + color: #4F4; + background: #000; + padding: 5px; + overflow: auto; +} diff --git a/docs/tooltip.js b/docs/tooltip.js new file mode 100644 index 000000000..e8330e349 --- /dev/null +++ b/docs/tooltip.js @@ -0,0 +1,72 @@ +/* +Description: + + jQuery ToolTip Demo. Demo of how to add elements and get mouse coordinates + There is also a ToolTip plugin found at http://www.eyecon.ro/interface/, + which uses a CSS class to style the tooltip, but shows it below the input/anchor, rather than where the mouse is + +Usage: + + $(window).load( + function() + { + $("a,input").ToolTipDemo('#fff'); + } + ); + +Parameters: + + bgcolour : Background colour +*/ +$.fn.ToolTipDemo = function(bgcolour) +{ + this.mouseover( + function(e) + { + if((!this.title && !this.alt) && !this.tooltipset) return; + // get mouse coordinates + // based on code from http://www.quirksmode.org/js/events_properties.html + var mouseX = e.pageX || (e.clientX ? e.clientX + document.body.scrollLeft : 0); + var mouseY = e.pageY || (e.clientY ? e.clientY + document.body.scrollTop : 0); + mouseX += 10; + mouseY += 10; + bgcolour = bgcolour || "#eee"; + // if there is no sibling after this one, or the next siblings className is not tooltipdemo + if(!this.nextSibling || this.nextSibling.className != "tooltipdemo") + { + // create a div and style it + var div = document.createElement("div"); + $(div).css( + { + border: "2px outset #ddd", + padding: "2px", + backgroundColor: bgcolour, + position: "absolute" + }) + // add the title/alt attribute to it + .html((this.title || this.alt)).addClass("tooltipdemo"); + this.title = ""; + this.alt = ""; + if(this.nextSibling) + { + this.parentNode.insertBefore(div, this.nextSibling); + } + else + { + this.parentNode.appendChild(div); + } + this.tooltipset = true; + } + $(this.nextSibling).show().css({left: mouseX + "px", top: mouseY + 3 + "px"}); + } + ).mouseout( + function() + { + if(this.nextSibling && this.nextSibling.className == "tooltipdemo") + { + $(this.nextSibling).hide(); + } + } + ); + return this; +}