>>> $(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. :)



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

Reply via email to