Input Month select() Method

Definition and Usage

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

Example

Select the content of the month text field:

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

Try It Yourself

Syntax

monthObject.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

Note:Firefox will select the entire month text field, while other browsers will only select the month part of the text field.