Alternative to datetime-local?

前端 未结 4 1995
被撕碎了的回忆
被撕碎了的回忆 2021-01-18 08:23

Is there a alternative for that because Firefox and Internet Explorer are not supporting it...

Example:

4条回答
  •  北荒
    北荒 (楼主)
    2021-01-18 08:27

    I ran across this while looking for something to use instead of datetime-local

    https://www.daterangepicker.com/

    It has similar functionality to datetime-local and some extra. The one thing you would have to account for is being able to limit users' changing the date values in the input box if you do it that way. datetime-local automatically prevents say, putting letters into the time values.

    Otherwise, Jonathan's answer still seems the best basic built-in option that works with FF/Chrome.

提交回复
热议问题