[jQuery] $().trigger?

[jQuery] $().trigger?

Hi all
Just been thinking about things, and after having a look through the
docs I've noticed there's no information about the trigger method which
I've seen in the source. After doing a couple of quick tests, it seems
as though I'm not able to do something like:
$('div#warning').focus(function(){
this.addClass('showWarning');
});
$('a.close').click(function(){
$('div#warning').trigger('focus');
});
Am I looking at it wrong, or is this not possible?
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/