[thelist] HTML: Simluating OPTGROUP in IE 5
Frank
lists at frankmarion.com
Sun Mar 30 15:09:28 CST 2003
At 12:58 PM 2003-03-30 -0500, you wrote:
>using scripting you could implement a nice interface for selecting country
>and then sub-division. with alittle forethought, you could also build the
>interface in such a way that those without scripting could also use it,
>albeit with a trip to the server and back.
>
>in short, i think you really should rethink your stance on not breaking
>these two things into separate lists.
I had originally created two menus: one for countries, one for subdivision.
When the user selected a country, only the appropriate subdivision showed
up in the second menu (ie: "United States" only gave 52 states). Using Moz,
I was able to set the value of the subdivision menu to display:none, thus
all but the states disappeared.
But this doesn't work in IE, or at least I haven't figured out how to do
it. Any advice on the matter is welcome.
Using the OPTGROUP was a last ditch effort at creating good one-step UI
that's relatively cross-browser, otherwise I would spend an eternity
figuring the script out.
Frank
More information about the thelist
mailing list