En faite j'essaye de faire un formulaire qui reagit en fonction de bouton radio !!!

Mais mon soucis c que je voudrai que d'apres c choix g l'ensemble des champs de saisie ce modifie !!

POurriez vous m'aider !!

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
 
<script language="JavaScript" type="text/JavaScript">
	function chg_acquis(me){
		// Louer est selectionné
		if (me.type_acquisition[1].checked) {
			me.nom_type_acqui.value = "Location :";
			me.type_immo[3].disabled = true;
			me.type_immo[4].disabled = true;
			if (me.type_immo[3].checked || me.type_immo[4].checked)
				me.type_immo[0].checked = true;
				chg_immo(me);
		}
		// Acheter selectionné
		if (me.type_acquisition[0].checked) {
			me.nom_type_acqui.value = "Prix :";
			me.type_immo[3].disabled = false;
			me.type_immo[4].disabled = false;
		} 
	}
 
	function chg_immo(me){
		// Maison selectionné
		if (me.type_immo[0].checked){
			me.nom_chp_maj_1.value = "Nombres de piéces :";
			me.nom_chp_maj_2.value = "Nombres de chambres :";
			me.nom_chp_maj_3.value = "Surface :";
			// Modifier les chmps valeur associer !!
			// me.val_chp_maj_1, me.val_chp_maj_2, me.val_chp_maj_3
		}
		// Appartement selectionné
		if (me.type_immo[1].checked){
			me.nom_chp_maj_1.value = "Nombres de piéces :";
			me.nom_chp_maj_2.value = "Nombres de chambres :";
			me.nom_chp_maj_3.value = "Surface :";
		}
		// Stationnment selectionné
		if (me.type_immo[2].checked){
			me.nom_chp_maj_1.value = "Type :";
			me.nom_chp_maj_2.value = "Nbres stationnements :";
			me.nom_chp_maj_3.value = "";
			//delete me.nom_chp_maj_3;
		}
		// Immeuble selectionné
		if (me.type_immo[3].checked){
			me.nom_chp_maj_1.value = "Nombres de lots :";
			me.nom_chp_maj_2.value = "Nombres d'étages :";
			me.nom_chp_maj_3.value = "Surface :";
		}
		// Terrain selectionné
		if (me.type_immo[4].checked){
			me.nom_chp_maj_1.value = "Surface :";
			me.nom_chp_maj_2.value = "Type :";
			me.nom_chp_maj_3.value = "";
		}
	}
</script>