Selected or clicked?  It fires the click event even if you use spacebar
while focused on it.
It fires focus when you tab onto it or click on it.

Glen

On 8/14/07, lukek <[EMAIL PROTECTED]> wrote:
>
>
> Is there an specific event raised when a button (input type="button")
> is selected? Or am I being a bit stupid? To capture this I am having
> to use:
>
> $("#myButton")
>     .bind("keyup", function(event){
>         if (event.keCode == 13)  {
>             //do stuff
>         }
>     })
>     .unbind()
>     .click(function(){
>         // do stuff
>     });
>
> Any ideas?
>
> Cheers
>
> lukek
>
>

Reply via email to