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
Answer:
Which is the correct jQuery statement to get the value "href" attribute having id "top" $("#top").attr("href").