【程序员博客0001】解决html5 下input type为date,设置value值无效的问题

in #php4 years ago

html5下input有个新类型 date,用来设置日期的,效果如下:

当你为input 设置value值的时候,不生效,比如设置2019-12-04,效果如下:

但是可以用js的办法来搞定:

最终效果:

Sort:  

Congratulations @kevinwang2019! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

You got your First payout

You can view your badges on your Steem Board and compare to others on the Steem Ranking
If you no longer want to receive notifications, reply to this comment with the word STOP

Vote for @Steemitboard as a witness to get one more award and increased upvotes!

Coin Marketplace

STEEM 0.30
TRX 0.12
JST 0.033
BTC 64038.31
ETH 3137.77
USDT 1.00
SBD 3.86