Reputation: 21
I am using an anchor tag and have to access its content in jQuery. I have to access the 'text' from this. I have known about $("#AnchorID").attr("href")
or something else but is there any way to grab the value ('text') of it?
<a href="">text</a>
Upvotes: 2
Views: 540