Hi all, I'm trying to find the index of the first empty text field (class name is item).
I am able to get the text field object by using: $("[EMAIL PROTECTED]''"]) However I can't get the index, i.e., which text field is it? The number of text fields are dynamic, but there will always be at least one that is empty. Using: $("[EMAIL PROTECTED]''"]).index(this); Returns: -1 Also tried $(".item").index($("[EMAIL PROTECTED]''"])); also returns -1 Anyone know how to do it? Cheers.