Input Time select() 方法

定义和用法

select() The method is used to select the content of the time text field.

Example

Select the content of the time text field:

document.getElementById("myTime").select();

Try It Yourself

Syntax

timeObject.select()

Parameters

None.

Technical Details

Return Value:

No Return Value.

Browser Support

Chrome Edge Firefox Safari Opera
Chrome Edge Firefox Safari Opera
Supported Supported Not Supported Supported Supported