How to make <input type=“date”> supported on all browsers? Any alternatives?

前端 未结 11 2063
不知归路
不知归路 2020-11-29 16:57

I\'m working with HTML5 elements input attributes and only Google Chrome supports the date, time attributes. I tried Modernizr but I can\'t understand on how to integrate it

11条回答
  •  孤街浪徒
    2020-11-29 17:56

    Two-Script-Include-Solution (2019):

    Just include Better-Dom and Better-Dateinput-Polyfill in your scripts section.

    Here is a Demo:
    http://chemerisuk.github.io/better-dateinput-polyfill/

提交回复
热议问题