how can i create a html or java script to have two or three combo boxes. that the

kingsinnersoul

New member
first one filters the sec? how can i create a html or java script to have two or three combo boxes. that the first one filters the second and the second the third etc...

also i was wondering if i can create in MS excel or MS access a data sheet and the combo boxes in some way will be directed to those datas?


thanks for the help.
 
Well there is alot too that. But to get you pointed in the right direction you should name all your selector boxes


<script type="text/javascript">

function Chk() {
if (document.form.sel1.value=="Turkey") {document.form.sel2.value="Gravey"}
if (document.form.sel1.value=="Chicken") {document.form.sel2.value="Ranch"}
if (document.form.sel1.value=="Ham") {document.form.sel2.value="Honey"}
}
</script>

<form name="form">

<select name="sel1" onchange="Chk()">
<option value="Turkey">Turkey</option>
<option value="Chicken">Chicken</option>
<option value="Ham">Ham</option>
</select>

<select name="sel2" onchange="Chk()">
<option value="Gravey">Gravey</option>
<option value="Ranch">Ranch Dressing</option>
<option value="Honey">Honey</option>
</select>

</form>

Have fun!
 
Back
Top