SooIn Nam SooIn Nam - 1 year ago 109
jQuery Question

How to remove css property in JQuery

$("#accordion li a.category").css('background-image', 'url("img/off_all_channel.png")');
$("#accordion li a.comment").css('background-image', 'url("img/on_all_online.png")');

I am trying to remove two css properties that I added but It seems not working.
Any though?

Answer Source

You can remove them by:

$(".icha0").css({ 'background-color' : '', 'opacity' : '' });
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download