select

UK[sɪˈlekt] US[sɪˈlɛkt]

vt.Select; select; select

adj. Selected; select come out; be selective; be picky, picky

jquery select() method syntax

Function:When the text in the textarea or input element of text type is selected, the select event occurs. The select() method triggers a select event, or specifies a function to run when a select event occurs.

Trigger select event syntax:$(selector).select()

Bind the function to the select event syntax:$ (selector).select(function)

Parameters:

Parameters Description
function Optional. Specifies the function to be run when a select event occurs.

jquery select() method example

    

请试着选取输入域中的文本,看看会发生什么。

Run instance »

Click the "Run instance" button to view the online instance