Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8567271
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T17:50:38+00:00 2026-06-11T17:50:38+00:00

I recently posted this question: jqgrid edit form autocomplete="off" by default, how to change

  • 0

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!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T17:50:40+00:00Added an answer on June 11, 2026 at 5:50 pm

    While all browsers handle the storage and autocomplete of form fields in slightly different manners, they all rely on the form being submitted in order to store the values of the form fields themselves. As jqGrid handles the forms through AJAX (the update button is a link not a submit button), the forms themselves are never actually submitted, which in turn never allows the browser to store the field values for later use through autocomplete.

    One method of forcing the browser to store the field values, is to create an <iframe />, clone the <form />, append the cloned <form /> into the <iframe /> and submit it as part of the AJAX form submission process.

    Take for example this modified version of your JSFiddle.

    In the above example, fill out the ‘Standard Form’ and submit, reload the page and the fields are autocompleted as expected. Fill out the ‘AJAX Form’ and submit, reload the page and the fields are NOT autocompleted. Finally, fill out the ‘AJAX + iFrame Form’ and submit, reload the page and the fields should now autocomplete.

    *Note: The above example was tested on Chrome, Safari and Firefox. Your Milage may vary.

    For completeness, here is the relavent code:

    $('#iframe_submit').bind('submit', function(e){
        e.preventDefault(); // Prevents Standard Submit
    
        // Do AJAX Stuff Here...   
    
        // Create Clone of Form, Append to iFrame and Trigger Submit
        // This Forces Autocomplete to Register
    
        var $clone = $('#iframe_submit').clone();
            $clone.attr('id', 'iframe_clone'); // Only One ID Allowed
    
            $('<iframe />').appendTo('body').contents().find('body').append($clone);
            $('iframe').contents().find('#iframe_clone').submit();
        });
    

    I hope this helps!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I recently posted this question about codes for a gift-card-like voucher that users can
All, I recently posted this question on DAL design. From that it would seem
(This question is similar to the one I recently posted here except that now
This question is related to another one that I posted recently: Understanding HttpServletRequest and
From another question I recently posted, it seems that Classic ASP might not be
I recently posted this question on the r-help mailing list but got no answers,
Hello I recently posted this question but very badly explained the problem, but i'll
This question is related to another one I've posted recently: Check printing with Java/JSP
I've recently posted a question in this forum asking for any advice regarding missing
I recently posted this question which worked locally with the answer I selected as

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.