Bonjour tout le monde

Je souhaiterais que le select appart s'affiche quand Appartement de select logement est selectionné.

Voici les codes


style:

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
 
<style type="text/css">
select.hide { 
visibility:hidden;
display:none;
}
select.show {
visibility:visible;
display:;
}
 
</style>
Le select logement:

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
 
<SELECT name="logement" id="btnRecherche" onchange="document.getElementById('cbb1').className='show'">
 
<option style="background-color:yellow">-Type de logement-</option>
 
<option style="background-color:yellow">Maison</option>
 
<option style="background-color:yellow">Appartement</option>
</SELECT>

Quand on selectionne Appart du combo logement, le combo appart dois s'afficher.


Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
 
<SELECT  id="cbb1" name="appart" class="hide">
 
<option style="background-color:yellow">-type appart-</option>
<option style="background-color:yellow">t1</option>
</SELECT>
Je ne vois pas comment réaliser la fonction.

Merci

A +