How to use HTML5 to validate a date range?

前端 未结 5 1041
清酒与你
清酒与你 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:30

    It's great to see things moving towards a pure HTML solution ... but why not take a look at using moment.js to fill in the gaps for the time being?

    http://momentjs.com/

    There are plenty of good examples there and a lot of useful utility methods.

提交回复
热议问题