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
Answer:
Which is the correct jQuery selector to select all elements having "href" attribute $("[href]").