How to give the same link to multiple auto-generated buttons with the same ID
<p>How to give the same link to multiple auto-generated buttons with the same ID?</p>

<p>I've tried, but it only gives the first button the link, the rest of the buttons remain empty</p>

<pre><code>$('#Button').click(function() {
    window.location='aaa.html';
});
</code></pre>
