Created
November 17, 2009 16:58
-
-
Save jwdeane/237058 to your computer and use it in GitHub Desktop.
Remove a word with jQuery
This file contains hidden or 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
// http://johannburkard.de/blog/programming/javascript/6-quick-jquery-tips-text-manipulation-timers-and-elements.html | |
// The simple way – using regular expressions: | |
var el = $('#id'); | |
el.html(el.html().replace(/word/ig, "")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment