Jquery using the click function to just reference buttons
<p>Hi I have this line in my script to reference any button click on my page </p>

<pre><code>        $("input").click(function() {
      alert ("clicked") ; 
        but_id = (this.id);
        });
</code></pre>

<p>It will then work on any input element but I cant seem to reference just a button . I thought this would work but is does not </p>

<pre><code>        $("input :button").click(function() {
</code></pre>

<p>can anyone offer any advice please ? </p>
