Input Month select() Method

❮ Input Month Object

Example

Select the content of a month text field:

document.getElementById("myMonth").select();
Try it Yourself »

Description

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


Browser Support

Method
select() Yes Yes Yes Yes Yes

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


Syntax

monthObject.select()

Parameters

None.

Technical Details

Return Value: No return value

❮ Input Month Object
Copyright 1999-2023 by Refsnes Data. All Rights Reserved.