If I had something like:
<a>Content 1</a>
<a>Content 2</a>
<a>Content 3</a>
And I wanted to get the what’s in between the anchor tags (the words being clicked), how would I go about that? The links are shown dynamically, so I can’t add an id attribute to them. (I think I can’t, at least.)
This should work to select all:
if you want to get the click event on anchor tags, but only those without an id or class, try this:
and if you only want your action to be performed once: