I want to disable autocomplete for all inputs using jquery ui datepicker without doing this to every input manually. How could be this done?
autocomplete
try this:
$('.datepicker').on('click', function(e) { e.preventDefault(); $(this).attr("autocomplete", "off"); });
in anycase you have not mentioned in your question that this is coming from an ajax call!
1.4m articles
1.4m replys
5 comments
57.0k users