<script>
function afficher(service){
if(service=="midi"){
document.getElementById('Service11').style.display="block";
document.getElementById('Service12').style.display="block";
document.getElementById('Service13').style.display="block";
document.getElementById('Service14').style.display="block";
document.getElementById('Service19').style.display="none";
document.getElementById('Service20').style.display="none";
document.getElementById('Service21').style.display="none";
document.getElementById('Service22').style.display="none";
}else{
document.getElementById('Service11').style.display="none";
document.getElementById('Service12').style.display="none";
document.getElementById('Service13').style.display="none";
document.getElementById('Service14').style.display="none";
document.getElementById('Service19').style.display="block";
document.getElementById('Service20').style.display="block";
document.getElementById('Service21').style.display="block";
document.getElementById('Service22').style.display="block";
}
}
</script>
<label>Service : </label>,
Midi
Soir,
,
----
<label>Heure de réservation</label>,
<table>
----,
<select title=\"HrReserv\" name=\"HrReserv\" maxlength=\"2\">
<option class=\"alignSelectInput\" value=\"0\" selected=\"hh\">hh</option>
<option id='Service11' value=\"11\">11</option>
<option id='Service12' value=\"12\">12</option>
<option id='Service13' value=\"13\">13</option>
<option id='Service14' value=\"14\">14</option>
<option id='Service19' style='display:none' value=\"19\">19</option>
<option id='Service20' style='display:none' value=\"20\">20</option>
<option id='Service21' style='display:none' value=\"21\">21</option>
<option id='Service22' style='display:none' value=\"22\">22</option>
</select>
</td>
:,
<select title="MnReserv" name="MnReserv" maxlength="2">
<option class="alignSelectInput" value="0" selected="mm">mm</option>
<option class="alignSelectInput" value="0">00</option>
<option class="alignSelectInput" value="15">15</option>
<option class="alignSelectInput" value="30">30</option>
<option class="alignSelectInput" value="45">45</option>
</select>
function afficher(service){
document.getElementById('hh').selected=" selected ";
if(service=="midi"){
...voir plus haut...
}else{
...voir plus haut...
}
}
<option value="0" id="hh" selected="hh">hh</option>
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question