The :nth-of-type selector is not in the current jQuery Base. Perhaps it was once.
As luck would have it I added :nth-of-type to my Selectors Plugin yesterday and I'd love it if you could try it out. JS file: http://www.softwareunity.com/sandbox/JQueryMoreSelectors/JQuery.moreSelectors.js Demo: http://www.softwareunity.com/sandbox/JQueryMoreSelectors/ (It is commented as 'work in progress' in the script because while it seems to work I have not yet tested it aggresively.) I also added :blur yesterday, to find the element that last had the focus, such as after clicking submit. Also in progress are :only-of-type, :first-of-type, :last-of-type and :in-view. (The latter being an ambitious experiment to return elements that are currently in the visible portion of the browser window, ie not scrolled out of view). Full list in the js file. Blair McKenzie-2 wrote: > > Try > var fileName = $("[EMAIL PROTECTED]:eq("+n+")").val(); > > On 9/19/06, Sure Fire <[EMAIL PROTECTED]> wrote: >> >> On my jquery tutorial site, I updated to the latest version of jquery >> and a demo that was working prior is no longer functioning. I've done >> my best to narrow it down to this line: >> >> var fileName = $("[EMAIL PROTECTED]:nth-of-type("+n+")").val(); >> >> >> >> >> Full code is here: >> http://15daysofjquery.com/examples/multiFile/demo2.php >> >> Thank you for your assistance. >> >> >> >> _______________________________________________ >> jQuery mailing list >> [email protected] >> http://jquery.com/discuss/ >> > > _______________________________________________ > jQuery mailing list > [email protected] > http://jquery.com/discuss/ > > -- View this message in context: http://www.nabble.com/nth-of-type-not-working-in-some-cases-tf2356344.html#a6564908 Sent from the JQuery mailing list archive at Nabble.com. _______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
