Consider following HTML snippet:

<div>
   <p>first paragraph<p>
   <p>second paragraph<p>
   <p>third paragraph<p>
</div>
What is the correct jQuery code to set the background color of second <p> element to red?

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Keep exploring
JavaScript quizzes
Cosmo
Sign Up Now
or Subscribe for future quizzes