-
Notifications
You must be signed in to change notification settings - Fork 266
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
All: Updates for jQuery 1.12/2.2-3.5
- Loading branch information
Showing
38 changed files
with
367 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<?xml version="1.0"?> | ||
<entry type="method" name="even" return="jQuery"> | ||
<title>.even()</title> | ||
<signature> | ||
<added>3.5</added> | ||
</signature> | ||
<desc>Reduce the set of matched elements to the even ones in the set, numbered from zero.</desc> | ||
<longdesc> | ||
<p>Given a jQuery object that represents a set of DOM elements, the <code>.even()</code> method constructs a new jQuery object from the even elements in that set. Counting starts from zero!</p> | ||
<p>Consider a page with a simple list on it:</p> | ||
<pre><code> | ||
<ul> | ||
<li>list item 1</li> | ||
<li>list item 2</li> | ||
<li>list item 3</li> | ||
<li>list item 4</li> | ||
<li>list item 5</li> | ||
</ul> | ||
</code></pre> | ||
<p>We can apply this method to the set of list items:</p> | ||
<pre><code> | ||
$( "li" ).even().css( "background-color", "red" ); | ||
</code></pre> | ||
<p>The result of this call is a red background for the first, third & 5th items.</p> | ||
</longdesc> | ||
<example> | ||
<desc>Highlight the even items in a list.</desc> | ||
<css><![CDATA[ | ||
.highlight { | ||
background-color: yellow; | ||
} | ||
]]></css> | ||
<code><![CDATA[ | ||
$( "ul li" ).even().addClass( "highlight" ); | ||
]]></code> | ||
<html><![CDATA[ | ||
<ul> | ||
<li>Look:</li> | ||
<li>This is some text in a list.</li> | ||
<li>This is a note about it.</li> | ||
<li>This is another note about it.</li> | ||
</ul> | ||
]]></html> | ||
</example> | ||
<category slug="traversing/filtering"/> | ||
<category slug="version/3.5"/> | ||
</entry> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.