jquery/docs/data/jquery-docs-json.js

1 line
119 KiB
JavaScript
Raw Normal View History

2006-08-13 05:05:31 +02:00
[{"property":1,"cat":"Core","type":"String","desc":"The current SVN version of jQuery.","params":[],"short":"The current SVN version of jQuery.","examples":[],"private":1,"name":"jquery"},{"short":"The number of elements currently matched.","params":[],"desc":"The number of elements currently matched.","property":1,"type":"Number","name":"length","examples":[{"code":"$(\"img\").length;","result":"2","before":"<img src=\"test1.jpg\"/> <img src=\"test2.jpg\"/>"}],"cat":"Core"},{"short":"The number of elements currently matched.","params":[],"desc":"The number of elements currently matched.","type":"Number","name":"size","examples":[{"code":"$(\"img\").size();","result":"2","before":"<img src=\"test1.jpg\"/> <img src=\"test2.jpg\"/>"}],"cat":"Core"},{"short":"Access all matched elements.","params":[],"desc":"Access all matched elements. This serves as a backwards-compatible\nway of accessing all matched elements (other than the jQuery object\nitself, which is, in fact, an array of elements).","type":"Array<Element>","name":"get","examples":[{"code":"$(\"img\").get();","result":"[ <img src=\"test1.jpg\"/> <img src=\"test2.jpg\"/> ]","before":"<img src=\"test1.jpg\"/> <img src=\"test2.jpg\"/>"}],"cat":"Core"},{"short":"Access a single matched element.","params":[{"type":"Number","desc":"Access the element in the Nth position.","name":"num"}],"desc":"Access a single matched element. num is used to access the \nNth element matched.","type":"Element","name":"get","examples":[{"code":"$(\"img\").get(1);","result":"[ <img src=\"test1.jpg\"/> ]","before":"<img src=\"test1.jpg\"/> <img src=\"test2.jpg\"/>"}],"cat":"Core"},{"short":"Set the jQuery object to an array of elements.","params":[{"type":"Elements","desc":"An array of elements","name":"elems"}],"desc":"Set the jQuery object to an array of elements.","type":"jQuery","name":"get","private":1,"examples":[{"code":"$(\"img\").get([ document.body ]);","result":"$(\"img\").get() == [ document.body ]"}],"cat":"Core"},{"short":"Execute a function within the context of every matched element.","params":[{"type":"Function","desc":"A function to execute","name":"fn"}],"desc":"Execute a function within the context of every matched element.\nThis means that every time the passed-in function is executed\n(which is once for every element matched) the 'this' keyword\npoints to the specific element.\n\nAdditionally, the function, when executed, is passed a single\nargument representing the position of the element in the matched\nset.","type":"jQuery","name":"each","examples":[{"code":"$(\"img\").each(function(){ this.src = \"test.jpg\"; });","result":"<img src=\"test.jpg\"/> <img src=\"test.jpg\"/>","before":"<img/> <img/>"}],"cat":"Core"},{"short":"Access a property on the first matched element.","params":[{"type":"String","desc":"The name of the property to access.","name":"name"}],"desc":"Access a property on the first matched element.\nThis method makes it easy to retreive a property value\nfrom the first matched element.","type":"Object","name":"attr","examples":[{"code":"$(\"img\").attr(\"src\");","result":"test.jpg","before":"<img src=\"test.jpg\"/>"}],"cat":"DOM"},{"short":"Set a hash of key/value object properties to all matched elements.","params":[{"type":"Hash","desc":"A set of key/value pairs to set as object properties.","name":"prop"}],"desc":"Set a hash of key/value object properties to all matched elements.\nThis serves as the best way to set a large number of properties\non all matched elements.","type":"jQuery","name":"attr","examples":[{"code":"$(\"img\").attr({ src: \"test.jpg\", alt: \"Test Image\" });","result":"<img src=\"test.jpg\" alt=\"Test Image\"/>","before":"<img/>"}],"cat":"DOM"},{"short":"Set a single property to a value, on all matched elements.","params":[{"type":"String","desc":"The name of the property to set.","name":"key"},{"type":"Object","desc":"The value to set the property to.","name":"value"}],"desc":"Set a single property to a value, on