tags:

views:

289

answers:

4
$('#element').css({'background-color':'none'});

The code above doesn't work. Is there a way to do it?

+1  A: 

How about this?

$('#element').css({'background-color':'transparent'});

You can also try

$('#element').css("background-color", "transparent");
Ólafur Waage
A: 

You should be using transparent instead of none.

Evän Vrooksövich
A: 

Do this:

$('#element').css('background-color','transparent');

or

$('#element').css({ backgroundColor: 'transparent' });
a432511
+2  A: 

you can use one of these two options (i recommend the second one):

option 1:
$('#element').css('background-color','transparent');

option 2:
$('#element').css('background-color','inherit');

cubny