Dave Methvin schrieb:
>>>> $(function(){ $("#second,#first")[0].focus() });
>>>>   
>>> Good job, Dave! Can't think of any way to get that any shorter.
>> $($("#second,#first")[0].focus);
>>
>> It is a reference, right? Oh please!
> 
> Unfortunately, typeof(element.focus)!= "function" in IE (and I have scars to
> prove it) so it wouldn't be interpreted correctly by $(). But I am in awe of
> Klaus for even thinking of that. Or maybe I am just scared of him now that I
> know how his mind works. :)

LOL!

It doesn't work in FF either... That's because at the time it is passed 
to $() it's not a function yet I assume (?).


-- Klaus


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to