How to add placeholder <input type=“datetime-local”> field?

后端 未结 5 647
忘了有多久
忘了有多久 2021-01-21 06:36

I\'ve been trying to add placeholder in input type=\'datetime-local\' field but it doesn\'t work at all. Use css for solving the issue but still unable to do it :(

5条回答
  •  一整个雨季
    2021-01-21 07:07

    This is kind of a wonky idea, change the input type to text, then it will convert to datetime-local on focus using the below javascript.

    
    
    
    

提交回复
热议问题