jQuery Remove Class by Regular Expression
I recently came across a problem in an app I was working on of needing to remove a class name from an element that began with a particular string. The removeClass() method that comes with jQuery does not seem to be able to handle any type of wildcards and only works on an exact match. This led me to write my own little removeClassRegEx() and hasClassRegex() methods to be able to handle this probl
Want to have your say? just login


Be first to show your opinion !!!