Question #147808

Which is the correct jQuery selector to select all elements having "href" attribute?


Options:

Explanation:
The <span class="w3-codespan">$("[href]")</span> selector is used to select all elements having <span class="w3-codespan">href</span> attribute.
Tags: jQuery

Test Your Knowledge

Want to practice more questions like this? Take a quiz in this category!

Take a Quiz

Share This Question