Alex Rivera | Logout

How to set div background color to 'none' using jQuery's css?

Asked 2009-11-21T21:12:52.217
33
$('#element').css({'background-color':'none'});

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

Edit
Report

1 Answer

3

Do this:

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

or

$('#element').css({ backgroundColor: 'transparent' });
answered 2009-11-21T21:19:33.670

Your Answer