Fred's Blog
Opensource with life.
Tuesday, May 3, 2011
jQuery removeClass
[cc lang="javascript"]
$('td[class^="input_"]').removeClass(function (index, class) {
var matches = class.match (/spf_c\d+/g) || [];
return (matches.join (' '));
});
[/cc]
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment