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!
2.1m questions
2.1m answers
60 comments
56.9k users