Open HTML5 date picker inside input box click

前端 未结 1 1915
别那么骄傲
别那么骄傲 2021-01-24 00:23

I\'m trying to open a HTML5 date picker on click inside an input text box using the below code, but it is not working as expected.

However, clicking on the calendar icon

1条回答
  •  一向
    一向 (楼主)
    2021-01-24 01:16

    Try with input type="text" instead of type="date" and on focus event call function "openDP".

    
    

    Note: You can also use angularjs-datepicker instead of default HTML5 date picker as type="date" is not supported in Safari or Internet Explorer 11 (or earlier).

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