[jQuery] Re: Parent Child Selectors + bind

2007-09-26 Thread Anjanesh
But doesnt $("#id1 > :text") select only the first textbox under #id1 element ? I wanted to bind the focus function to all textboxes under id1. But I found this plugin (http://www.texotela.co.uk/code/jquery/ focusfields/) to do what I wanted to do anyway.

[jQuery] Re: Parent Child Selectors + bind

2007-09-26 Thread Erik Beeson
Also, your initial selector can be simplified to: $("#id1 > :text") --Erik On 9/26/07, Remy Sharp <[EMAIL PROTECTED]> wrote: > > > You're binding to 'onfocus' when it should be 'focus': > > $("#id1 > [EMAIL PROTECTED]").bind("focus", foo); > > On Sep 26, 8:35 am, Anjanesh <[EMAIL PROTECTED]> wro

[jQuery] Re: Parent Child Selectors + bind

2007-09-26 Thread Remy Sharp
You're binding to 'onfocus' when it should be 'focus': $("#id1 > [EMAIL PROTECTED]").bind("focus", foo); On Sep 26, 8:35 am, Anjanesh <[EMAIL PROTECTED]> wrote: > Hi > > I cant get this seem to work > > $("#id1 > [EMAIL PROTECTED]").bind("onfocus", foo); > > Is there something wrong with the arg