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