Reputation: 73
How to remove background image from a particular list withing a -ul- which has class: dfwp-list ? ..My code is not working
$("ul.dfwp-list > li").css('background-image':'none');
Upvotes: 1
Views: 401
Reputation: 23859
The syntax of calling .css method is wrong. You need to pass it two arguments, or wrap the arguments in object literal ({}):
.css
{}
$("ul.dfwp-list > li").css('background-image', 'none'); // OR $("ul.dfwp-list > li").css({'background-image': 'none'});
Upvotes: 3