Chained Selects Example II (with Disable/Hide Empty Lists)

Example prepared by Dynamic Drive.
Select a vehicle: 

This example is essentially the same menu as Example One, except for the following:

  1. An arbitrary string ("cs") is passed in as the last argument for function initListGroup() inside this page, "example2.htm", enabling the session-only cookie persistent feature. What this means is that the script will save and load the last state of the chained Selection lists when you reload or return to this page.
  2. The first option of each list is set to empty, enabling the ability to hide or disable the list when it's empty. See "exampleconfig2.js", and compare that with "exampleconfig.js" in Example 1.