I've a following HTML code snippet:
<ul id="popover-content" class="list-group" style="display: none">
<a data-toggle="modal" data-target="#myModal-edit-event" href="ajax_edit_event.php?op=view&event_id={$eventDetails.event_details.event_id}" class="list-group-item" data-dismiss="modal">Edit Event</a>
<a href="#" class="list-group-item">Invite Members</a>
<a href="#" class="list-group-item">Delete Event</a>
</ul>
Now I want to access the first anchor tag element in jQuery. I want to write some logic when that anchor tag is clicked. Please note that I can't assign an Id to any of these anchor tags. If I assign the Id the intended other jQuery functionality doesn't work. So I don't want to make any change in above HTML code. Please suggest me a jQuery way solution for click event of first hyperlink. Better if you provide solution for all the three anchor tags.
Thanks.
Thanks
`. Using selectors on invalid markup can produce unpredictable results. Also please show what you have tried
– charlietfl Jan 17 '16 at 14:14`.
– nicael Jan 17 '16 at 14:19