When writing a text in a text input type (<input type="text" />) we find that generally the browser is going to autocomplete what you are writing at that time with text that we have already written earlier, recalling for input called "name" the name or names you have entered.
The practice of auto is very helpful whenever we have repetitive forms such as registration forms are similarly always call and they always ask the same data, avoid rewrite all our data over and over again.
There are cases where you might not want that the browser will autocomplete the text, may be the case that we have an online store that paying by credit card and we do not want that credit card we autocomplete. To avoid this, there is an attribute that is used by the vast majority of browsers is the attribute autocomplete="on|off", if the value is cleared off, tells the browser not autocomplete the field.
Although in many cases it is good practice to use the autocomplete attribute, the W3C has recognized this attribute as an attribute of the input tag with which to try to validate and meet with the autocomplete attribute, we give a validation error. To resolve the validation error that will be using javascript to add this attribute, the functionality is still there, but we will not have validation issues.
The only thing we do is add the following code at the bottom of the page, or at least, just after declaring the input
<script type="text/javascript"> //<![CDATA[ var inputElement = document.getElementById("inputId") inputElement.setAttribute("autocomplete", "off"); //]]> </script>
In this way we will ensure that when entering text in a input autocomplete not by the browser and if we can do for you autocomplete javascript.
A good and beautiful example of autocomplete fields is the use for muchoviaje in the areas of origin and destination.