autocomplete =’off’ is not working when the input type is password and make the input field above it to enable autocomplete

You can just make the field readonly while form loading. While the field get focus you can change that field to be editable. This is simplest way to avoid auto complete.

<input name="password" id="password" type="password" autocomplete="false" readonly onfocus="this.removeAttribute('readonly');" />

Leave a Comment