Callbacks On Generated code (multiple)

From my prior post I have created a secondary issue…

  • How to initiate a callback from generated code (list of a tags)?

So I have this situation

  1. Dropdown/Selection creates the following tags:

<a href=“/location/a” id=“gen”>Location A</a>
<a href=“/location/c” id=“gen”>Location B</a>
<a href=“/location/c” id=“gen”>Location C</a>

  1. On Click of tag… Make API call to get data…

Q: What should the callback look like given the id is the same?
Q: … Or how could this work if I assign a different id to each tag?