Question #147847

Which is the correct jQuery statement to get the value "href" attribute having id "top"?


Options:

Explanation:
The jQuery statement <span class="w3-codespan">$("#top").attr("href")</span> will return the the value <span class="w3-codespan">href</span> attribute having id "top".
Tags: jQuery

Test Your Knowledge

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

Take a Quiz

Share This Question