In jQuery, what is basic difference between .select() & focus() and what are their appropriate using places?
From the jQuery documentation:
select
The select event is sent to an element when the user makes a text selection inside it. This event is limited to
fields andboxes.
focus
The focus event is sent to an element when it gains focus. This event is implicitly applicable to a limited set of elements, such as form elements (
,, etc.) and links (). In recent browser versions, the event can be extended to include all element types by explicitly setting the element's tabindex property.