Ersetzen Sie die Klasse JQuery
$('#divFoo').replaceClass('colored','blackAndWhite');
$('.divFoo').replaceClass('colored','blackAndWhite');
Junior Cercado V.
$('#divFoo').replaceClass('colored','blackAndWhite');
$('.divFoo').replaceClass('colored','blackAndWhite');