Which is the correct jQuery statement to change the color of all <p> elements which are sibling elements of <pre>?
Options:
Explanation:
The correct jQuery statement to change the color of all <span class="w3-codespan"><p></span> elements which are sibling elements of <span class="w3-codespan"><pre></span> is:
Tags:
jQuery
Answer:
Which is the correct jQuery statement to change the color of all <p> elements which are sibling elements of <pre> $("pre").siblings("p").css({"color": "red"});.