I have one HTML page with 50 A tags and I want to create alert based on an element that i want to set inside the A. something like this:
<a href "something">click to see the alert</a>
i do not have any ideas about what should be places on the A tag. but i want to know how is it possible to to such thing with jquery.
I appreciate your help
Thank you so much
You could add the alert as a data-attribute, then just alert the data-value on click.
HTML
JS