Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to clear history of text input

Tags:

html

browser

On my HTML page I have multiple text inputs. Every time I enter values in them, it shows me the previously entered values. Is it due to a browser property or HTML? How do I disable it?

like image 200
Aditya Ponkshe Avatar asked Jul 23 '13 06:07

Aditya Ponkshe


People also ask

How do I turn off textbox suggestions?

Click the Display tab. Do one of the following: To enable AutoComplete for the text box, select the Enable AutoComplete check box. To disable AutoComplete for the text box, clear the Enable AutoComplete check box.

How do I turn off AutoComplete in HTML?

Add autocomplete="off" onto <form> element; Add hidden <input> with autocomplete="false" as a first children element of the form.


4 Answers

Always the better appraoch is to give form autocomplete="off"

<form autocomplete="off">  <input type="text" id="text1"> <input type="text" id="text2">  </form> 

Then only newer versions of Eclipse support HTML5 tags such as autocomplete else it will show warning...

like image 198
Arun Bertil Avatar answered Sep 19 '22 23:09

Arun Bertil


Just set the autocomplete property of your textboxes to off. Like this...

<input type="email" name="email" autocomplete="off"> 
like image 25
mohkhan Avatar answered Sep 19 '22 23:09

mohkhan


That solution helped me: if you are using google Chrome, try this: Put the mouse pointer on the entry that you want to delete, press Delete. If the entry is not removed, press Shift+Delete.

like image 21
Sharon Nissanov Avatar answered Sep 22 '22 23:09

Sharon Nissanov


i think it is related to this question autocomplete

try to used javascript to add attribute autocomplete to your form

someForm.setAttribute( "autocomplete", "off" ); someFormElm.setAttribute( "autocomplete", "off" );
like image 38
kashimu Avatar answered Sep 21 '22 23:09

kashimu