Solved

Select the JQuery Code That Will Set the Background Color

Question 40

Multiple Choice

Select the jQuery code that will set the background color of all li elements to green.


A) $('li') .style('background-color', 'green') ;
B) $('li') .html('background-color', 'green') ;
C) $('li') .attr('background-color', 'green') ;
D) $('li') .css('background-color', 'green') ;

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions