The form module
This script will automatically make any and all forms on pages linked to it persist. That is: if JavaScript and cookies are enabled on the user's web browser, the contents of the form will be stored when it is submitted, and used to re-populate the form the next time the user has to fill it out.
It also provides rudimentary automated form validation. Inputs with initial value '*' (and select-boxes where one of the options has the value '*') are interpreted as required fields, and if the form is submitted without these being filled in, an automated error message will ask the user to complete the form properly.
menu.js requires the event.js module
(grab it here). Import them
both either in your <head>, or in the
<body> just underneath your form(s).
<script type="text/javascript" src="event.js"></script>
<script type="text/javascript" src="menu.js"></script>
(If in the head, the script will not activate until the page is completely loaded.)
All globals in the either version of the script are prefixed
form_ so they should not interfere with any
other scripts you are using.
Latest version
Version 0.5: module, example page.