Skip to content

Instantly share code, notes, and snippets.

@idac73
Created September 27, 2013 15:04
Show Gist options
  • Save idac73/6730004 to your computer and use it in GitHub Desktop.
Save idac73/6730004 to your computer and use it in GitHub Desktop.
Regex to remove string
element.className.replace(/(?:^|\s)disabled(?!\S)/g,'');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment