How to implement a generic click event for anchors
<p>Currently i have a php script that throws out a bunch of buttons(Format in case needed is</p>

<pre><code>&lt;a class="ClassInfo" id="id"&gt;Name&lt;/a&gt;
</code></pre>

<p>The file is retrieved dynamically and there can be as many buttons as possible, maybe none and maybe a million(Unlikely though).
Anyways this is about javascript. I need to use javascript for this and cant just redirect the user to another website(Mostly because the operation is repeated heavily and gets EXTREMELY tedious..).</p>

<p>Is it possible for me to use some combination of javascript + jquery to essentially detect which button was pressed and do an operation appropriately?</p>

<p>Example of what i am hoping for is this:
User clicks one of the buttons(Which has its unique id number).
Javascript detects which button was clicked(I cant just use fixed code as the number of buttons and the ids can change whenever they feel like it).
Javascript send out an Ajax request and does some fancy operations(I got this part covered).</p>

<p>Now is it possible for me to detect which button was clicked? I am really struggling with this. </p>
