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]> wrote:
> > Hi
> >
> > I cant get this seem to work
> >
> > $("#id1 > [EMAIL PROTECTED]").bind("onfocus", foo);
> >
> > Is there something wrong with the argument ?
> >
> > Thanks
>
>

Reply via email to