daily pastebin goal
73%
SHARE
TWEET

Untitled

a guest Jul 11th, 2018 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top