slt petol,
je que je cherche c d'avoir une liste deroulante invisible en fonction d'une autre liste deroulante.
voici le code html du formulaire(gestion de materiel):
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Nouvelle page 1</TITLE>
<SCRIPT>
function grise(radio)
{if(radio[0].checked){document.Choix.bbb.disabled=true}
if(radio[1].checked){document.Choix.bbb.disabled=false}
{
if(radio[0].checked){document.Choix.aaa.disabled=true}
if(radio[1].checked){document.Choix.aaa.disabled=false}
}
}
</SCRIPT>
<SCRIPT language=Javascript>
function GereControle(Controleur, Controle, Masquer) {
var objControleur = document.getElementById(Controleur);
var objControle = document.getElementById(Controle);
if (Masquer=='1')
objControle.style.visibility=(objControleur.checked==true)?'visible':'hidden';
else
objControle.disabled=(objControleur.checked==true)?'false':'true';
return true;
}
</SCRIPT>
<META http-equiv=Content-Language content=fr>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<META content="MSHTML 6.00.2900.2180" name=GENERATOR></HEAD>
<BODY>
<FORM name=Choix action=materiel.php method=post>
<P><B>Service</B> : <SELECT size=1 name="nom_service"> <OPTION
value="Informatique" selected>Informatique</OPTION> <OPTION
value="Comptabilité">Comptabilité</OPTION> <OPTION
value="Commerce">Commerce</OPTION></SELECT> <B> Nom et
Prénom : </B><SELECT size=1 name=Nom></SELECT>
<B><form method="post" name="nom_materiel"><b>Materiel:</b>
</B> <INPUT id=souris
onclick="GereControle('souris', 'liste_10', '1');" type=radio
name=nom_materiel value="souris"> <LABEL for=souris>souris</LABEL>
<BR>
<INPUT id=clavier onclick="GereControle('souris', 'liste_10', '1');" type=radio
name=nom_materiel value="clavier"> <LABEL for=clavier>clavier</LABEL>
<INPUT id=scanner
onclick="GereControle('scanner', 'liste_10', '1');" type=radio
name=nom_materiel value="scanner"><LABEL for=souris>scanner</LABEL>
<BR>
<INPUT id=imprimante onclick="GereControle('imprimante', 'liste_10', '1');"
type=radio name=nom_materiel value="imprimante"><LABEL for=scanner>imprimante</LABEL>
<BR>
<B>Marque : </B><SELECT size=1 name=id_marque> <OPTION value="Sony vaio n215"
name=Marque >Sony vaio n215</OPTION> <OPTION
name=Marque value="HP COMPAQ nc 6120">HP COMPAQ nc 6120</OPTION></SELECT> <B>Fournisseur :</B>
<INPUT name=id_fournisseur></P>
<DIV
style="BORDER-RIGHT: 1px solid; PADDING-RIGHT: 4px; BORDER-TOP: 1px solid; PADDING-LEFT: 4px; PADDING-BOTTOM: 1px; BORDER-LEFT: 1px solid; PADDING-TOP: 1px; BORDER-BOTTOM: 1px solid">
<B><FONT color=#800080 size=6>Gestion de matériel</FONT></B></DIV>
<TABLE height=289 width=1239 border=1>
<TBODY>
<TR>
<TD width=641 colSpan=2 height=43><FONT
color=#0000ff>Caractéristiques</FONT>:
<P>
Processeur/Vitesse:<INPUT size=15
name=Processeur/Vitesse> Taille :<INPUT size=14
name=bbb></P>
<P>
Capacité:<INPUT size=13 name=aaa>
Disque dur :<INPUT size=13 name=Disque dur></P>
<P>
Adresse Mac :<INPUT size=13
name=Adresse Mac>
Adresse IP :<INPUT size=15 name=Adresse IP></P></TD>
<TD style="BORDER-LEFT: 1px solid" width=582 height=283 rowSpan=3><SELECT
size=1 name=liste_10 value="Type de connexion"><option>Type
de connexion</OPTION> <OPTION value="ADSL">ADSL</OPTION> <OPTION
value="Numéris">Numéris</OPTION> <OPTION value="Câble">Câble</OPTION>
<OPTION value="réseau téléphonique cablé">réseau téléphonique
cablé</OPTION></SELECT>
<P></P>
<P><FONT color=#0000ff> Connexion réseau
:</FONT></P><INPUT id="connecté au réseau"
onclick="GereControle('radio_10', 'connecté au reseau', '1');" type=radio
name=radios_0> <LABEL for=radio_10>connecté au reseau</LABEL>
<BR>
<P><FONT color=#0000ff> <form method="post" name="statut">statut</FONT></P>
<P> <INPUT type=checkbox value="Stock" name=statut>Stock</P>
<P> <INPUT type=checkbox value="Affecté" name=statut>Affecté</P>
<P> <INPUT type=checkbox value="Réparation" name=statut>Réparation</P>
<P> <INPUT type=checkbox value="Garantie" name=statut>Garantie</P>
<P> <INPUT type=checkbox value="Intervention"
name=statut>Intervention</P></TD></TR>
<TR>
<TD width=641 colSpan=2 height=38><FONT color=#0000ff>Info
Matériels</FONT>:
<P>Référence: <INPUT size=15
name=Reference>
N°_série : <INPUT size=15 name=N_serie></P>
<P>Licence : <INPUT size=15
name=Licence>
Désignation : <INPUT size=15 name=Désignation></P></TD></TR>
<TR>
<TD width=325 height=27><FONT color=#0000ff>Achat du Matériels:</FONT>
<P>Date d'achat:<INPUT size=22 name=date_achat> </P>
<P>Prix:<INPUT size=24 name=Prix></P></TD>
<TD width=310 height=27><FONT color=#0000ff>Durée de garantie
compris:</FONT>
<P>Minimum:<INPUT name=Duree value="Duree"></P>
<P>Maximum:<INPUT name=Duree value="Duree"></P></TD></TR></TBODY></TABLE>
<P><INPUT type=submit value=Enregistrer name=Enregistrer><INPUT type=reset value=Annuler name=Annuler></P></FORM></BODY></HTML>
pour les materiaux je souhaite avoir une liste deroulante pour les materiax a la place des boutons radio.
et lorsque je selectionne un materiel (par exemple souris ,la liste des type deconnexion et le case a cocher de connexion reseau doivent etre invisible en plus de ça les champs texte concernant les caracteristiques doivent etre griser)
et merci d'avance.