3

I have one input field with type text and jQuery Datepicker. A weird thing happening is that when I click on that input field, chrome shows a password suggestion.

<input name="registration" type="text" placeholder="MM.JJJJ">

When I remove the name then it stops suggesting passwords.

enter image description here

Pritesh
  • 1,066
  • 3
  • 15
  • 35
Ikt
  • 97
  • 2
  • 9

2 Answers2

4

Do you have a input before that one, called something like email or username?

I've seen Chrome look at an input field and decide all by it's self that the field after it is a password field, and try to autocomplete it.

Chris Wheeler
  • 1,623
  • 1
  • 11
  • 18
0

You have to add autocomplete="disabled"

Chrome stopped supporting autocomplete="off" that's why autocomplete="off" isn't working but it doesn't understand if you use autocomplete="disabled" that's why this works for now

xmaster
  • 1,042
  • 7
  • 20