HTML Input Type Date, Open Calendar by default

前端 未结 1 1661
谎友^
谎友^ 2020-12-31 03:37

I have a task which is to show the calendar by default to select date in the input field of html.

For suppose this is the code:

input type=\"date\" n         


        
1条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-31 03:56

    This is not possible with native HTML input elements. You can use webshim polyfill, which gives you this option by using this markup.

    
    

    Here is a small demo

    0 讨论(0)
提交回复
热议问题