Hi,
> it's just returning an input
I don't suppose there are any hidden inputs with that class? (Maybe
IE doesn't like focussing hidden inputs.) But that wouldn't explain
why the each() version works when the invoke() version doesn't.
> It's not that I'm trying to focus more than one element, it's just
> that the element's ID is already set dynamically (using Rails), so I'm
> just adding a class name of "focus" as an easy, generic way to access
> the element. There's never more than one '.focus' per page.
In that case, although I'm still curious why IE has an issue with
invoke(), you may be better off with:
$$('.focus').first().focus();
...as that's at least clearer to subsequent authors that you're not
trying to enter a group of input elements in some kind of focus
superposition. :-)
--
T.J. Crowder
tj / crowder software / com