George Adamson schrieb:
> 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.
>
As Blair suggested, :nth-of-type was replaced by :eq, therefore I'm not
sure if that addition in your plugin really provides more value.
> I also added :blur yesterday, to find the element that last had the focus,
> such as after clicking submit.
Thats neat.
> 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.
>
Cool. Could be used for something like this:
var element = $(...);
if( !element.is(':in-view') ) {
element.scrollTo('fast');
}
-- Jörn
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/