Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $("input[autocomplete='off']").each(function () {
- var input = $(this);
- var id = $(this).attr("id");
- var name = $(this).attr("name");
- input.removeAttr("name").removeAttr("id");
- setTimeout(function () {
- input.attr("name", name).attr("id", id);
- }, 1);
- });
- $( document ).on( 'focus', ':input', function(){
- $( this ).attr( 'autocomplete', 'off' );
- });
- <form action="/action_page.php" autocomplete="on"> <!-- este está habilitado -->
- First name:<input type="text" name="fname"><br>
- Last name: <input type="text" name="lname"><br>
- E-mail: <input type="email" name="email" autocomplete="off"><!-- Já este não --><br>
- <input type="submit">
- </form>
Add Comment
Please, Sign In to add comment