Which is the correct jQuery statement to set background color and text decoration to all <p> elements?
Options:
Explanation:
The correct jQuery statement to set background color and text decoration to all <span class="w3-codespan"><p></span> elements is:
Tags:
jQuery
Answer:
Which is the correct jQuery statement to set background color and text decoration to all <p> elements $("p").css({"background-color": "#f1f1f1", "text-decoration": "underline"});.