I've always searching how to disable autocomplete but I haven't found exact answers.
It is usually a problem of chrome browsers that setting autocomplete="off" into the html isn't working.
How do I disable autocomplete using javascript or JQuery?
I've always searching how to disable autocomplete but I haven't found exact answers.
It is usually a problem of chrome browsers that setting autocomplete="off" into the html isn't working.
How do I disable autocomplete using javascript or JQuery?
<script language="javascript" type="text/javascript">
$(document).ready(function () {
try {
$("input[type='text']").each(function(){
$(this).attr("autocomplete","off");
});
}
catch (e)
{ }
});
</script>
You can try to use this workaround.
<input type="text" name="username" value=" " onclick="if(this.value == ' ') this.value=''" >
Click here for more info about this.