Note: .select() is a jQuery function.
This method is a shortcut for .bind('select', handler) in the first two variations, and .trigger('select') in the third.
The select event is sent to an element when the user makes a text selection inside it. This event is limited to <input type="text"> fields and <textarea> boxes.
2
solved JavaScript select() method [closed]