I recently posted this question: jqgrid edit form autocomplete="off" by default, how to change to autocomplete="on" because I noticed that by default the jqGrid edit form gave all the input elements the autocomplete="off"
attribute. I thought this was the reason why the web browser would not implement the usual auto-fill functionality for the jqGrid edit forms. After fixing this problem and making all the input elements have the autocomplete="on"
attribute, still there is no auto-fill for the jqGrid edit forms.
Does anyone know why the auto-fill won't work for these forms? The forms are submitted via ajax, so I am not sure if this is affecting it or not.
Just to be clear, I am not talking about jQuery's autocomplete()
. I am talking about a modern web browser's (Chrome, FF) built in form autofill functionality.
For example please go to my jsfiddle example form here. You can fill out the form with anything you want then click submit
. Refresh the page and fill it out again. Your browser should have remembered and suggested the values just filled in the first time. This is what happens for me.
On the other hand, if you go to a jqGrid edit example here. Select a row and click the little edit button (looks like a pencil). You can't change the first field, but you can change the other fields. Put whatever you want in the other fields and click submit
. Refresh the page a try again. What I am experiencing from many computers and both FF and Chrome is that this form does NOT remember any of the past entries.
This is the problem, are you experiencing the same thing? If so, do you know if it is possible to make these jqGrid forms compatible with the browser's auto-fill functionality?
Thanks!