> Perhaps calling focus ($("#myinput").focus()) should actually set the
> focus on the element as well as fire the onfocus event - rather than
> just fire the event.
It would help if the event shortcuts were less ambigous, eg. onfocus() instead
of focus(). If so, it would be easy to add focus to actually call focus on the
first element, eg.
jQuery.fn.focus = function() {
if(this.length > 0)
this[0].focus();
return this;
};
I wonder if that would trigger the focus events for that element...
--
Jörn Zaefferer
http://bassistance.de
--
GMX DSL-Flatrate 0,- Euro* - Überall, wo DSL verfügbar ist!
NEU: Jetzt bis zu 16.000 kBit/s! http://www.gmx.net/de/go/dsl
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/