0

I want to get rid of remembering form data after submit. Now I'm testing using Firefox 37 using autocomplete="off" for all inputs. It doesn't work.

I also try to do this using jquery:

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

Not working. Any advice?

alecxe
  • 414,977
  • 106
  • 935
  • 1,083
Simona
  • 143
  • 1
  • 1
  • 6
  • The `autocomplete` attribute seems to work for the form element only, https://developer.mozilla.org/en-US/docs/Web/Security/Securing_your_site/Turning_off_form_autocompletion – Pekka May 30 '15 at 08:16
  • I try it for the form too and doesn't work :( Here is an example: https://jsfiddle.net/as5m261t/1/ – Simona May 30 '15 at 08:21
  • Check http://stackoverflow.com/questions/2530/how-do-you-disable-browser-autocomplete-on-web-form-field-input-tag and the options given there esp. the 2nd one (I.e. randomize your input field names) – potatopeelings May 30 '15 at 08:51

0 Answers0