List Info

Thread: Question re: multiple select lists




Question re: multiple select lists
user name
2007-10-02 15:15:26

Hello --

I use ht://Dig to index a website that contains documentation for several
different versions of a software product. Currently, my search page
allows users to select a version of the software, then to search among
all books for that version, or a single book from that version. I use two
select fields for this purpose:

Version: <select name=";exclude&quot;>
<option value=&quot;Version6_0|Version7_0|Version7_1|Version7_2">Version 7.5
<option value=&quot;Version6_0|Version7_0|Version7_1|Version7_5">Version 7.2
<option value=&quot;Version6_0|Version7_0|Version7_2|Version7_5">Version 7.1
<option value=&quot;Version6_0|Version7_1|Version7_2|Version7_5">Version 7
<option value=&quot;Version7_0|Version7_1|Version7_2|Version7_5">Version 6
</select>
Book: <select name=";restrict&quot;>
<option value=&quot;">;All
<option value=&quot;A"&gt;Book A
<option value=&quot;B"&gt;Book B
<option value=&quot;C"&gt;Book C
<option value=&quot;D"&gt;Book D
<option value=&quot;E"&gt;Book E
<option value=&quot;F"&gt;Book F
</select>

However: the set of books available is not exactly the same for each
version of software: one version might have books A, B, C, and D;
another might have B, C, D, and E, and one might have only D and F.

I'd like for the items available in the 'Book' select field ; to be
populated based on the 'Version' chosen by the user, so it
only contains the books that are applicable to that version. Is there
a way to do this with JavaScript?

Thanks --

Kyle

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )