How to get rid of placeholder on password field taken over from label

后端 未结 4 1905
借酒劲吻你
借酒劲吻你 2021-02-09 15:00

I can\'t get rid of unwanted placeholder (or watermark) on password textbox. When password textbox is focused, Android web browser displays placeholder overtaken from associated

4条回答
  •  野的像风
    2021-02-09 15:18

    What you need to do to prevent this is to set the label 'for' attribute to be something other than 'password'. You can also change the 'name' attribute of the input to something other than 'password'. Both seem to stop Android from putting the label in as a placeholder.

提交回复
热议问题