Created
February 17, 2015 07:48
-
-
Save dotMastaz/7a8a88152bf400887033 to your computer and use it in GitHub Desktop.
jQuery Find Text and Replace
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
//Find Text and Replace | |
$("selector").text(function () { | |
return $(this).text().replace("search", "replace"); | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment