I wish to display/hide elements based on the combination of the two select boxes. I've tried the following method when "values" was selected for eg. when we select the optional "in" and "spare" then that results is the "spare-in" id being shown.
<select id="test1">
<option value="in">in</option>
<option value="out">out</option>
</select>
<select id="test2">
<option value="spare">Spare</option>
<option value="faulty">Faulty</option>
<option value="rma">RMA</option>
</select>
<div id="in spare" >
spare-in id is ...
</div>
<div id="in faulty" >
rma-in id is ...
</div>
<div id="out spare" >
spare-out id is ...
</div>
<div id="out rma" >
rma-out id is ...
</div>