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 :)