Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 529
dance2die Avatar asked Oct 20 '09 03:10

dance2die


1 Answers

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:

  • How to Turn Off Form Autocompletion
like image 173
Christian C. Salvadó Avatar answered Nov 14 '22 23:11

Christian C. Salvadó