1 line
115 KiB
JavaScript
1 line
115 KiB
JavaScript
|
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. <tt>num</tt> is used to access the <tt>num</tt>th 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.<br><br>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'
|