Chained Selects Example II (with Disable/Hide Empty Lists)
Example prepared by Dynamic Drive.
This example is essentially the same menu as Example One, except for the following:
- 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.
- 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.
Copyright 2004 Xin Yang