Possible Duplicate:
Is there a W3C valid way to disable autocomplete in a HTML form?
Is there a way I can prevent a browser from not remembering the content of a text field? The problem is that the field contains a value such as 100, and then gets appended a currency symbol such as € making it 100 €. If I click on the field, my widget removes the currency and I can edit the bare number, and when I blur it displays the currency again. Everything works fine until you hit F5 and then you end up having 100 € € because the browser restored the original value 100 € it had when the reload happened, and the widget re-added it.
For browsers that support it, there’s the new
autocompleteattribute. From the link:…although in the specific case you describe, I think I’d probably just keep the € symbol outside the field’s value in the first place. You can put it next to the field, or superimpose it on the field using CSS (for instance, put it after the field in the markup and then use
position: relative; left: -3em, that sort of thing). But if you really want to prevent the browser’s auto-filling,autocompleteis one tool for the toolchest.