[jQuery] Re: Access a certain Button

2009-10-06 Thread 赵静
Just $("#btnRegister").click(function{ // handler code...}) is ok I think if the id is unique. On Tue, Oct 6, 2009 at 11:42 PM, CoffeeAddict wrote: > > > I'm trying to get reference to a certain button on the DOM. I tried this: > > $('button#btnRegister').click(function() { > > where button has

[jQuery] Re: Access a certain Button

2009-10-06 Thread Giovanni Battista Lenoci
CoffeeAddict ha scritto: I'm trying to get reference to a certain button on the DOM. I tried this: $('button#btnRegister').click(function() { where button has the ID of btnRegister. is this right? I think so, but I never use this syntax. For definition the id is unique, then I use always