Input Number select() Method

Definition and Usage

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

Example

Select the content of the number text field:

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

Try It Yourself

Syntax

numberObject.select()

Parameters

None.

Technical Details

Return Value:

No Return Value.

Browser Support

Chrome Edge Firefox Safari Opera
Chrome Edge Firefox Safari Opera
Support Support Support Support Support