Wymień jQuery

$('#divFoo').replaceClass('colored','blackAndWhite');
$('.divFoo').replaceClass('colored','blackAndWhite');
Junior Cercado V.