Skip to content

Commit e898b4a

Browse files
committed
[TASK] adds month and days to the examples of min max properties
1 parent 07d9507 commit e898b4a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,16 +64,16 @@ include it anywhere in your HTML.
6464
```
6565

6666
## Min and Max
67-
* By setting the `min` and `max` attributes you can change the range of available options. In case you are faced with an input without type date, it is recommended to use `data-min` and `data-max`.
67+
* By setting the `min` and `max` attributes you can change the range of available date options. In case you are faced with an input without type date, it is recommended to use `data-min` and `data-max`.
6868
```html
6969
<!--default dont need to be specified-->
70-
<input type="date" min="1800" max="2200"/>
70+
<input type="date" min="1800-01-01" max="2200-01-01"/>
7171

7272
<!--custom-->
73-
<input type="date" min="2000" max="2030" />
73+
<input type="date" min="2015-02-15" max="2030-01-01" />
7474

7575
<!--custom for non type date-->
76-
<input type="text" class="date-polyfill" data-min="2000" data-max="2030" />
76+
<input type="text" class="date-polyfill" data-min="2015-02-15" data-max="2030-01-01" />
7777
```
7878

7979
## Formatting

0 commit comments

Comments
 (0)