How to disable autocomplete

You can disable auto complete using this code.
Put these  code to your common JavaScript file. This code will add autocomplete= "off" to all inputs or forms in your website.You don't want to add all html inputs or forms manually. So it wiil be easy for you.

$(document).ready(function() {

    $('input').attr('autocomplete', 'off');

});
or
$(document).ready(function() {

    $('form').attr('autocomplete', 'off');

});

No comments:

Post a Comment