HTML5 date field and placeholder text in Safari

后端 未结 5 1242
难免孤独
难免孤独 2021-01-11 20:19

I\'ve got an issue, but I\'m not sure if it\'s something I\'m doing wrong, or if this feature just isn\'t supported yet.

Basically I have the following lines of code

5条回答
  •  执念已碎
    2021-01-11 20:45

    Slight hack bit here goes...

    Initially have the field as a text field. When the user focuses on the field switch the fields type to date and re-focus.

    tested in ios6

    HTML

    
    

    JS

    
    

提交回复
热议问题