←Go Back to Online Practice Test
Ques. What is the correct jQuery code to set the background color of all p elements to red?
Option 1. $("p").manipulate("background-color","red");
Option 2. $("p").style("background-color","red");
Option 3. $("p").layout("background-color","red");
Option 4. $("p").css("background-color","red");
Ans. Option 4
Please provide the reason below. The best provided reason will be displayed with your name(if you are logged-in) on website.
Enter Reason
 
Is it helpful? Yes No