How to set the default Value of input type month using only HTML??
I tried to set the value like this <input type="month" value="oct-1982"> and also like this <input type="month" value="1982-oct"> but nothing happened
<input type="month" value="oct-1982">
<input type="month" value="1982-oct">
Try this:
<input id="month" type="month" value="1982-10">
But you should take a look at this answer https://stackoverflow.com/a/53188466/12102286
1.4m articles
1.4m replys
5 comments
57.0k users