HTML Input Type Date, Open Calendar by default

前端 未结 1 1646
谎友^
谎友^ 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.

    <input type="date" data-date-inline-picker="true" />
    

    Here is a small demo

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