The select() method is an inbuilt method in jQuery which is used when some letters or words are selected (or marked) in a text area or a text field.
Parameter: This method accepts single parameter function which is optional. Th function parameter will run after select method call.
Return Value: This method returns a notification when something is select.
Below example illustrates the select() method in jQuery:
Before select anything !
After selecting some letters or words !
- How to select the last row of a table using jQuery ?
- How to select a div with a certain class using jQuery ?
- How to select an element by name with jQuery?
- How to Select a Range of Elements using jQuery ?
- How to select text nodes using jQuery ?
- How to add options to a select element using jQuery?
- How to select elements by attribute in jQuery ?
- How to get N options from the <select> element using JQuery?
- How to select all on focus in input using JQuery?
- How to select ID that starts with certain character using jQuery ?
- How to select all elements without a given class using jQuery ?
- How to select first element in the drop-down list using jQuery ?
- How to remove options from select element using jQuery ?
- How to select html element using ID in jQuery when ID contains a dot character ?
- jQuery UI | Spinner to select numeric data
- How to select an element with multiple classes using jQuery ?
- How to select all elements that contains some specific CSS property using jQuery ?
- How to fire an event on file select using jQuery ?
- How to select all visible or hidden elements in a HTML page using jQuery ?
- jQuery | eq() with Examples
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.