Prepare Interview

Exams Attended

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

Answers for jQuery Online Test - Online Exam - Online Quiz - Mock Test

←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
©2023 WithoutBook