how do i find out if a certain button has been clicked like in check boxes
<p>e.g </p>

<pre><code>if()//  button1 is clicked
{
  alert("Button 1 was clicked");
}
if()//   button2 is clicked
{
  alert("Button 2 was clicked");
}
</code></pre>
