Prevent Browser Auto-fill

/ Published in: JavaScript
Save to your folder(s)

Copy this code and paste it in your HTML
  1. /*Use a jQuery selector to add a new attribute to
  2. input fields that you dont want to have auto-fill*/
  3. $('input[type="password"]').attr({autocomplete:"off"});

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.