-1

I have set autocomplete off in input field of html form. It perfectly works in Firefox and safari but is not working in google chrome.

This is my basic Form.

<form  action="" autocomplete="off" id="form2" method="post" class="registerDiv">
    <input type="email" name="cust_username_email"  id="cust_username_email" placeholder="E Mail ID* (User Name)" value="" autocomplete="off" class="form-control" />
    <input type="password" name="cust_Pass" id="cust_Pass" required  placeholder="Password* " value="" autocomplete="off" class="form-control"/>
</form>
Nigel Ren
  • 56,122
  • 11
  • 43
  • 55
  • 1
    Welcome to Stack Overflow :) could you show us your code? We can't necessarily help you without seeing what you've done so far. – DKyleo Oct 11 '18 at 07:11
  • Possible duplicate of [Autocomplete off vs false?](https://stackoverflow.com/questions/30053167/autocomplete-off-vs-false) – לבני מלכה Oct 11 '18 at 07:13
  • Try setting `autocomplete="off"` on your `
    ` element too.
    – brombeer Oct 11 '18 at 07:13
  • Go through this link may be its helpful https://developer.mozilla.org/en-US/docs/Web/Security/Securing_your_site/Turning_off_form_autocompletion – ABHI Oct 11 '18 at 07:15
  • hii @DKyleo i have edited my post with a basic form. its working in firefox and safari but is not working in crome – Anurag Parmar Oct 11 '18 at 07:17
  • @kerbholz i already did that but its not working in crome.. anyways thanks form for responding to my question. – Anurag Parmar Oct 11 '18 at 07:19

2 Answers2

0

For new Chrome versions you can just put for example autocomplete="empty" in your fields and that's it.

Benjamin45
  • 52
  • 7
0

Chrome ignores autocomplete="off", there is only working on form tag.

You could change autocomplete attribute to other string

<input type="text" name="foo" autocomplete="new-input">
Yang Daniel
  • 125
  • 5