0

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
  • 838
  • 1
  • 7
  • 27
Ikt
  • 57
  • 5

2 Answers2

1

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,513
  • 1
  • 10
  • 17
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,041
  • 5
  • 18