So, I\'ve got this code:
$(document).ready(function(){
$(\'form\').attr(\'autocomplete\', \'off\');
});
It works great for all forms al
The live event is now deprecated, you should us the on event instead. This will attach to every input in the DOM no matter if it's created yet or not. It will then add the autocomplete="off" attribute to that input.
$(document).ready(function() {
$(document).on('focus', ':input', function() {
$(this).attr('autocomplete', 'off');
});
});