How to use HTML5 to validate a date range?

前端 未结 5 1010
清酒与你
清酒与你 2021-01-12 17:15

Alternatively, is it possible to validate against another field\'s value with html5?

A common example would be selecting a date range where \"from\" date sh

5条回答
  •  无人共我
    2021-01-12 17:40

    I'm worry, that there's no chance how to validate a input value based on other input value. Only good old javascript.

    But maybe you can use and set some minimal step (1 day / 1 hour / …). Then you can use min and max value by same-named attributes.

提交回复
热议问题