Skip to content

Commit 3a446fd

Browse files
author
Markus Amalthea Magnuson
committed
doesn"t -> doesn't
1 parent 66ac8e8 commit 3a446fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

page/using-jquery-core/faq/how-do-i-replace-text-from-the-3rd-element-of-a-list-of-10-items.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ source: http://docs.jquery.com/Frequently_Asked_Questions
66
Either the :eq() selector or the .eq() method will allow you to select the proper item. However, to replace the text, you must get the value before you set it:
77

88
```
9-
// This doesn"t work; text() returns a string, not the jQuery object
9+
// This doesn't work; text() returns a string, not the jQuery object
1010
$( this ).find("li a").eq( 2 ).text().replace( "foo", "bar" );
1111
1212
// This works
@@ -17,4 +17,4 @@ var linkText = $thirdLink.text().replace( "foo", "bar" );
1717
$thirdLink.text( linkText );
1818
```
1919

20-
The first example just discards the modified text. The second example saves the modified text and then replaces the old text with the new modified text. Remember, .text() gets; .text("foo") sets.
20+
The first example just discards the modified text. The second example saves the modified text and then replaces the old text with the new modified text. Remember, .text() gets; .text("foo") sets.

0 commit comments

Comments
 (0)