Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

auto complete is not working in firefox 38

Tags:

html

firefox

I have a profile form in my site in which the password field is auto filled even after i gave auto complete="off" to the text box and also to the form. After that also i got the password field auto complete.

<input name="password" id="password" type="password" autocomplete="off" />
like image 365
sujivasagam Avatar asked May 19 '15 09:05

sujivasagam


2 Answers

Please try this instead of using any dummy hidden variables within the form.

<input name="password" id="password" type="password" autocomplete="false" readonly onfocus="this.removeAttribute('readonly');" />
like image 125
madhu Avatar answered Oct 15 '22 17:10

madhu


At last i found a solution for this question. We can make the field as read only and editable on getting focus.

<input name="password" id="password" type="password" readonly onfocus="this.removeAttribute('readonly');" />
like image 36
sujivasagam Avatar answered Oct 15 '22 19:10

sujivasagam