On 11/17/06, "Jörn Zaefferer" <[EMAIL PROTECTED]> wrote:
> > Or you could call focus on each of the elements in the jQuery object like
> > this:
> >
> > jQuery.fn.fieldFocus = function() {
> > return this.each(function() {
> > if (this.focus) this.focus();
> > });
> > };
> >
> > Inside of the each method the 'this' points to the actual DOM element
> > and not the jQuery object. I check for focus first so as not to cause
> > an error on elements that don't have the method.
>
> While that is true, it doesn't make sense in this specific example. There
> can't be more element then one with focus...
HAHAHAHA ... no it doesn't make sense. Thanks Jorn.
--
Brandon Aaron
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/