Disable Chrome Autofill when using placeholders

I'm having trouble with google auto-complete for placeholder fields. Therefore, I tried almost all the solutions that were given: Disabling Chrome's autocomplete , but, unfortunately, none of this works as I need.

Thus, the idea has a form with different fields where some of them are required, others are not (which makes the Ryan Grush solution absent).

I tried autocomplete = "false", autocomplete = "off", I tried to use the "ghostly" inputs at the beginning of the form, I tried different ways to force an empty value to fields.

I could use javacript to hide the shortcut (based on Ryan Grush's solution) as soon as the user starts typing, but unfortunately with the help of design requirements this is something that would be done only as a last resort. So here I hope someone comes across something similar with Chrome and placeholders.

+4
source share
1 answer

Unfortunately, This:

<input autocomplete='off'>

And this:

<form autocomplete='off'>

Chrome is being ignored, and I haven't found a job around yet ... Other browsers like Firefox, Safari, etc. Do they support

0
source

Source: https://habr.com/ru/post/1599776/


All Articles