The select() event is applied to an element using jQuery when the user makes a text selection inside an element or on focus the element. This event is limited to some fields. Syntax:
//Select all Input field on focus
//Select Input field on focus whose type="text"
//Select input field using its id="input-field"
Example: In below example, select all made on input element of the form using focus, focus and click event.
Please Login to comment...