Input Month type attribute

Paglilinaw at paggamit

type Ang atributo ay ibang uri ng form element ang ibig sabihin ng buwan.

Paalala:Sa itaas na halimbawa, ang Firefox ay nagbibigay ng "text", atipan ng ibang mga browser ay nagbibigay ng "month".

Example

Returns what type of form element the month field is:

var x = document.getElementById("myMonth").type;

Try It Yourself

Syntax

monthObject.type

Technical Details

Return value: String value, representing the form element type of the month field.

Browser Support

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