Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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', '')
*/
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #jquery #remove #css
ADD COMMENT
Topic
Name
5+8 =