emeka
emeka

Reputation: 73

Using jquery to remove background image from a particular list

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');

enter image description here

Upvotes: 1

Views: 401

Answers (1)

31piy
31piy

Reputation: 23859

The syntax of calling .css method is wrong. You need to pass it two arguments, or wrap the arguments in object literal ({}):

$("ul.dfwp-list > li").css('background-image', 'none');

// OR
$("ul.dfwp-list > li").css({'background-image': 'none'});

Upvotes: 3

Related Questions