.focus()


.focus( handler )Returns: jQueryversion deprecated: 3.3

Description: Bind an event handler to the "focus" event, or trigger that event on an element.

This API is deprecated.

Instead of .focus( handler ) or .focus( eventData, handler ), use .on( "focus", handler ) or .on( "focus", eventData, handler ), respectively.

Instead of .focus(), use .trigger( "focus" ).