@jay, it looks to me from the documentation that
- $(#'myDiv').focus();
will not give the div focus, but rather trigger the div's handler for the focus event. Am I misreading the docs?Actually the final example on that doc page does support what you said. But the earlier definition says
"This method is a shortcut for .bind('focus', handler)
in the first and second variations, and .trigger('focus')
in the third" [i.e. with no arguments].