jQuery: Set the background color of a page
jQuery core : Exercise-2 with Solution
Set the background color of a page to red.
Solution:
HTML Code:
JavaScript Code:
Live Demo:
Contribute your code and comments through Disqus.
Previous: Find all h1 elements that are children of a div element and apply a background to them.
Next: Hide all the input elements within a form.
What is the difficulty level of this exercise?
Test your Programming skills with w3resource's quiz.