All menus should be created as assoc arrays ( Even if an array value is another array ) Then we can use a generic routine biscuits->db->array2menu()
This results in the following HTML markup being added to the page:
<!-- application jsData -->
<!-- END OF application jsData -->
ajax will load gapfill.php via function gapUpdateForm(formElem) to get the students previous attempts from the DB. function getAttempts()
The markup must have each text input as class="gapfill-question" and each must have a sequenced id="gf1" "gf2" etc., Note: no "gf0"