Thursday, June 23, 2011

How to stop autocomplete in html forms?

In form by default we have option to fill the input fields by remembering what you entered in previous text in that field.then autocomplete provide the list in dropdown we can just select options from that dropdown.we can turn off/on autocomplete.

in form just use <form autocomplete='off' using this we turn off the autocomplete in that form all input fields.

for individual element you can set the same to that particular field
<input autocomplete='off'


No comments:

Post a Comment