Click event for a list of buttons with same class name
<p>Can we write a click event in jquery for a list of buttons with same class name?
The html part is something like this</p>

<pre><code>&lt;a id="c1768" class="MyButton button " href="#" style="" name="c1768"&gt;Add to cart&lt;/a&gt;
&lt;a id="c1769" class="MyButton button " href="#" style="" name="c1769"&gt;Add to cart&lt;/a&gt;
&lt;a id="c1770" class="MyButton button " href="#" style="" name="c1770"&gt;Add to cart&lt;/a&gt;
&lt;a id="c1771" class="MyButton button " href="#" style="" name="c1771"&gt;Add to cart&lt;/a&gt;
</code></pre>

<p>and script part is </p>

<pre><code>$("MyButton button").click(function(){ //some event });
</code></pre>

<p>I want to do the event if any of the button is clicked, but the code is not working. Anyone help please.... Thanks</p>
