Answers for "how to replace class in jquery"

CSS
1

replace class jquery

$('#divFoo').replaceClass('colored','blackAndWhite');
$('.divFoo').replaceClass('colored','blackAndWhite');
Posted by: Guest on February-18-2022
0

jquery replace css class

$('.theClassThatsThereNow').addClass('newClassWithYourStyles').removeClass('theClassThatsTherenow');
Posted by: Guest on June-06-2021

Code answers related to "how to replace class in jquery"

Browse Popular Code Answers by Language