replaceClass would be like:
replaceClass ( oldClass, newClass )
Returns: jQuery
Replaces the first class with the second class.
My code for this is:
jQuery.fn.extend({
'replaceClass': function(remC,addC){
return this.each(function() { $
(this).removeClass(remC).addClass(addC); });
}
});
I would hope this gets implemented by default in jQuery.
Cheers.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---