1

I have an HTML form Which Contains the Various Field.

Simply We all Know that every browser will show some suggestion for the input field.

Like an Email Input field. When you enter or click on that input it shows the previously entered email or any other values. I have cleared and done all procedures for stopping that behavior. But still, I get previously entered data in the input field. (as in shown in image)

So how do I remove that suggestion or previously entered data? Or How do I prevent that automatic suggestion for the input field?

This is my HTML Sample Code for Input Field.

<div class="form-group ">
    <div class="col-xs-12">
        <input class="form-control" type="email" name="email" id="login_email" required placeholder="User Email" data-parsley-type="email">
    </div>
</div>

enter image description here

  • Yes it may Duplicate But I did not get it at first. So i asked it here. @AbdulJabbarWebBestow & thanks for the answer sir. –  Jun 08 '17 at 08:01
  • You are always welcome – Airy Jun 08 '17 at 08:02
  • Possible duplicate of [How do you disable browser Autocomplete on web form field / input tag?](https://stackoverflow.com/questions/2530/how-do-you-disable-browser-autocomplete-on-web-form-field-input-tag) – Airy Jun 08 '17 at 08:11
  • Sir you already notify me in first comment why you keep suggesting it? @AbdulJabbarWebBestow –  Jun 08 '17 at 08:16
  • Sorry about that but SO always prefer to answer/comment in moderate way and that's I had to show it again as per SO's flagging option. – Airy Jun 08 '17 at 08:21

2 Answers2

1

You can set

<input type="text" name="email" autocomplete="off" />

And some browsers like Firefox 3.0.X may still show cached objects so you can set your <form> tag with autocomplete="off".

For more detailed answers, please visit

How do you disable browser Autocomplete on web form field / input tag?

Airy
  • 5,484
  • 7
  • 53
  • 78
1

See this

I have added the

autocomplete="off"

In Your code. Try it.

<div class="form-group ">
<div class="col-xs-12">
    <input class="form-control" type="email" name="email" id="login_email" required placeholder="User Email" data-parsley-type="email" autocomplete="off">
</div>
</div>
always-a-learner
  • 3,671
  • 10
  • 41
  • 81