How to remove Auto-completion in Calendar field


#1

Hi,

Recently auto-fill data appeared. So user cannot select date on calendar.
How to remove this situation with programmatic solution?

Thanks.


#2

That’s standard browser behaviour, but I hate it too.

You can avoid this by adding autocomplete=off to your markup.
<input type="text" id="date" autocomplete="off" />

Or if you don’t want to have this behaviour at any of your input fields, just use jquery with this small piece of code:

<script>
$( document ).ready(function() {
    //disable all autocomplete info from browsers.
    $(":input").attr("autocomplete", "off");
});
</script>