2. On the next page, enter some data into a couple of form fields. Then, on the lower form, click the pencil icon, which opens a page for modifying a booking. Just click "Confirm", and you will be returned to the page where you entered some data.

3. The form fields are now empty. If you start typing, the system may suggest an autocompletion of your data, but this is not the objective. Previously, the form fields were complete when the page was reloaded, saving the visitor the effort of typing again.

You right, there's a missing file, take from here (end of the page here : https://github.com/BenGriffiths/jquery-save-as-you-type)
https://github.com/carhartl/jquery-cookie/blob/master/jquery.cookie.js

Thank you. I should have clarified that the fields covered in mtsaveaddress.js are the ones which need to be saved. Other fields will be changed by the user, or else they would not navigated away from that form to change those details. With the new version of software, none of the fields are repopulated by that js.

As you sent a link to your page it was very clear to me unlike my comments...
Currently your code stop working when some fields are NOT presents in the page generating a Javascript error which stop the saving of the values in a cookies.
You MUST add a test.
But I think you MUST use a separate cookie for ArrDate and DepDate fields too as you save the whole values inside ONE cookie so it will overwritte the values for FirstName, LastName (an so on) values because it's a different page.

With the new version of software, none of the fields are repopulated by that js.

Yes, as I said, there's a javascript error because the field are not in the page

OK, I edited the js, but the fields are still not repopulated. I don't know how to use a separate cookie for ArrDate and DepDate fields, and I hope I explained that those fields should NOT be repopulated. However, I think that those two fields may not be the issue. I'm posting a screen shot of the fields which were present on the previous software version, where the original mtsaveaddress.js works OK. It appears to me that the fields are identical. I'm attaching the modified js.mtSaveAddress.js

Also, I should have removed "onload" from the <body> tag of checkout.html, because that has been included in the js.

Thank you for your comments. The original mtsaveaddress.js has begun saving form data, but only with Internet Explorer, and only with pages on the remote server. It won't work with Chrome or Firefox,

I had difficulty with the modifications you recommended. The script with the tests would not work on this software version, or on the previous software version. Perhaps I made some mistakes in editing the js file.

Featured Post

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

I hope you'll find this tutorial useful and interesting. So let's try to extend Tcl with a new package. For anyone more deeply interested please check out the book "Practical Programming in Tcl and Tk". It's really one of the best written books abo…

The task
A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome.
So let’s take a number like this “12345678.91¿ and format i…

The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…