Answers for jQuery Online Test - Online Exam - Online Quiz - Mock Test
←Go Back to Online Practice Test| Question. 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"); |
Answer. Option 4 |
Save For Revision
Bookmark this item, mark it difficult, or place it in a revision set.
Log in to save bookmarks, difficult questions, and revision sets.
| Please provide the reason below. The best provided reason will be displayed with your name (if you are logged in) on the website. |
| Enter Reason |
|
Security Check
Solve this to continue: 1 + 7 = ?
|
Is it helpful? Yes No