After wasting too long mucking about with something else I found this..
http://www.bobbyvandersluis.com/articles/unobtrusivedynamicselect.php
.. and it worked in a couple of minutes, and it's only a handful of LoC.. sweet.
Maybe I should ask him if I can upload it to JSAN as it's sorely lacking that simple functionality in any of it's current packages.
And put this bit of Javascript in the onChange attribute for the first dropdown:<style type="text/css">
#pda-type option { display: none }
#pda-type option.select,
.hp#pda-type option.hp,
.dell#pda-type option.dell,
.palmone#pda-type option.palmone
{ display: block }
</style>
That's all there is to it. It'll do the same as his does, but with a lot less voodoo. Promised.onchange="document.getElementById('pda-type').className=this.value"
Re:It could be a lot simpler still.
bart on 2006-12-14T22:25:17
Oopsie, I just tried it in MSIE 6, and it doesn't work there, dammit. It does work in Firefox 1.5.