[jQuery] Re: Finding index of the first empty text field

2008-02-07 Thread andrea varnier
On 7 Feb, 11:23, andrea varnier <[EMAIL PROTECTED]> wrote: > $("input").index($(".item[value='']:first")[0]); this one is better: $("input").index($(".item[value='']")[0]); since we're using that [0] there's no longer need for the ":first" selector :)

[jQuery] Re: Finding index of the first empty text field

2008-02-07 Thread andrea varnier
On 7 Feb, 03:11, bikuta <[EMAIL PROTECTED]> wrote: > Hi all, > > I'm trying to find the index of the first empty text field (class name > is item). Hi there I've tried in many ways but the only one that works seems to be this one: $("input").index($(".item[value='']:first")[0]); You definitely n