Klaus Hartl schrieb:
> $(function() {
> var field = $("#second_field_to_enter")[0] ||
> $("#first_field_to_enter")[0].focus();
> field.focus();
> });
>
How about..
$(function() {
( $("#second")[0] || $("#first")[0] ).focus();
});
--
Jörn Zaefferer
http://bassistance.de
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/
