Answers for "add or remove css class using jquery"

CSS
3

jquery remove css class

$("p").removeClass( "myClass yourClass" )
Posted by: Guest on July-11-2020
0

jquery remove css

$("#id .class").css({ 'background-color' : '' });

/* 
   As mentioned in the jquery documentation:
   Setting the value of a style property to an empty string  
   removes that property from an element 
   if it has already been directly applied
   e.g. $('#mydiv').css('color', '')
*/
Posted by: Guest on September-03-2020

Code answers related to "add or remove css class using jquery"

Browse Popular Code Answers by Language