jquery/docs/jquery-docs-jsonp.js

1 line
115 KiB
JavaScript
Raw Normal View History

2006-08-09 07:44:05 +02:00
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': '&lt;img src="test1.jpg"/&gt; &lt;img src="test2.jpg"/&gt;','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': '&lt;img src="test1.jpg"/&gt; &lt;img src="test2.jpg"/&gt;','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': '&lt;img src="test1.jpg"/&gt; &lt;img src="test2.jpg"/&gt;','code': '$("img").get();','result': '[ &lt;img src="test1.jpg"/&gt; &lt;img src="test2.jpg"/&gt; ]'}],'name': 'get','params': [],'short': 'Access all matched elements.','type': 'Array&lt;Element&gt;'},{'desc': 'Access a single matched element. <tt>num</tt> is used to access the <tt>num</tt>th element matched.','examples': [{'before': '&lt;img src="test1.jpg"/&gt; &lt;img src="test2.jpg"/&gt;','code': '$("img").get(1);','result': '[ &lt;img src="test1.jpg"/&gt; ]'}],'name': 'get','params': [{'desc': 'Access the element in the &lt;tt&gt;num&lt;/tt&gt;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.<br><br>Additionally, the function, when executed, is passed a single argument representing the position of the element in the matched set.','examples': [{'before': '&lt;img/&gt; &lt;img/&gt;','code': '$("img").each(function(){ this.src = "test.jpg"; });','result': '&lt;img src="test.jpg"/&gt; &lt;img src="test.jpg"/&gt;'}],'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': '&lt;img src="test.jpg"/&gt;','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': '&lt;img/&gt;','code': '$("img").attr({ src: "test.jpg", alt: "Test Image" });','result': '&lt;img src="test.jpg" alt="Test Image"/&gt;'}],'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': '&lt;img/&gt;','code': '$("img").attr("src","test.jpg");','result': '&lt;img src="test.jpg"/&gt;'}],'name': 'attr','params': [{'desc': 'The name of the property to set.','name': 'key','type': 'String'},{'desc'