HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
jQuery Event Methods : Alert a message when a text is selected in a text field
The select event occurs when a text is selected (marked) in a text area or a text field.
The select() method triggers the select event, or attaches a function to run when a select event occurs.
Trigger the select event for the selected elements:
Attach a function to the select event:
Parameter | Description |
---|---|
function | Optional. Specifies the function to run when the select event is triggered |