How to cancel edit/disable cached input (of type text) value?

dance2die picture dance2die · Oct 20, 2009 · Viewed 12.8k times · Source

I have an input of type text, from which I have already entered value 1234
it has been saved in cache as shown below.

alt text

The problem here is that, it is extremely frustrating to select the textbox in the next row.

Is there a way to not to display that 12334 (highlighted in the screenshot) from ever being displayed through HTML markup or javascript?

Answer

Christian C. Salvadó picture Christian C. Salvadó · Oct 20, 2009

As @John pointed out, on modern browsers you can use the HTML5 valid autocomplete attribute, in your screenshot I see many textboxes, if you want to disable autocompletion on the whole form you can set this attribute directly at the form element:

<form name="form1" id="form1" method="post" autocomplete="off"
  action="http://www.example.com/form.action">
[...]
</form>

More info: