Skip to main content
Ben Nadel at CFUNITED 2010 (Landsdown, VA) with: Peruz Carlsen
Ben Nadel at CFUNITED 2010 (Landsdown, VA) with: Peruz Carlsen@peruzc )

Alex

Member since Nov 20, 2014

Recent Blog Comments By Alex

  • Clearing Inline CSS Properties With jQuery

    Posted on Nov 20, 2014 at 9:29 PM

    This will not work is what you need is to remove (or replace) a custom class. The idea is almost the same, however: var oldClasses = $('#elem').attr('class'); var newClasses = oldClasses.replace('bad-class', ''); $('#elem).attr('class', newClasses);... read more »