Initialisation variables java
Bonjour,
Voila mon problème:
j'ai une jsp dans lequel il y a 3 boutons radios pour le telephone:
Domicile (nature=D et type = F)
Professionnel (nature = P et type = F)
Portable (nature = D et type = G)
Lorsque j'arrive sur la page le telephone Domicile est coché. Lorsque je le modifie en Portable j'ai toujours "F" dans le type au lieu de "G".
Comment puis-je faire ? Merci d'avance
code de la jsp:
Code:
1 2 3 4 5
| <html:radio styleClass="AltBtn" styleId="radioDom" property="natureTelephone" onclick="decocherType();" value="D"/> Domicile
<html:radio styleClass="AltBtn" styleId="radioProf" property="natureTelephone" onclick="decocherType();" value="P">
Professionnel
<html:radio styleClass="AltBtn" styleId="radioMobile" property="typeTelephone" onclick="decocherNature();" value="G">
Portable |
code javascript
Code:
1 2 3 4 5 6 7
| function decocherType() {
document.getElementById('radioMobile').checked=false;
}
function decocherNature() {
document.getElementById('radioDom').checked=false;
document.getElementById('radioProf').checked=false;
} |