Guest User

Untitled

a guest
Jul 11th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. <form id="myform" autocomplete="off">
  2. <input autocomplete="off" type="text" name="name" />
  3. <input autocomplete="off" type="text" name="phone" />
  4. </form>
  5.  
  6. $(document).ready(function(){
  7. $( document ).on( 'focus', ':input', function(){
  8. $( this ).attr( 'autocomplete', 'off' );
  9. });
  10. });
  11.  
  12. $(document).ready(function(){
  13. $("input").attr("autocomplete", "off");
  14. });
  15.  
  16. <form id="myform" autocomplete="dummy-no-auto-complete-fix">
  17. <input autocomplete="dummy-no-auto-complete-fix" type="text" name="name" />
  18. <input autocomplete="dummy-no-auto-complete-fix" type="text" name="phone" />
  19. </form>
Add Comment
Please, Sign In to add comment