Skip to content

Instantly share code, notes, and snippets.

@jwdeane
Created November 17, 2009 16:58
Show Gist options
  • Save jwdeane/237058 to your computer and use it in GitHub Desktop.
Save jwdeane/237058 to your computer and use it in GitHub Desktop.
Remove a word with jQuery
// 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