Input Search select() Method
Example
Select the content of a search text field:
document.getElementById("mySearch").select();
Try it Yourself »
Definition and Usage
The select() method is used to select the content of a search text field.
Browser Support
Method | |||||
---|---|---|---|---|---|
select() | Yes | Yes | Yes | Yes | Yes |
Syntax
searchObject.select()
Parameters
None. |
Technical Details
Return Value: | No return value |
---|
❮ Input Search Object