Afficher les options selon le choix sans recharger la page
Posté : 26 avr. 2009, 15:07
Bonjour j'ai un petit problème j'ai fait mon code "select"
Et quand la personne choisi "Société" ou "Association" je voudrais que sa affiche ceci en plus
Mais pour faire ceci je ne sait comment m'y prendre je pense avec du javascript mais comment ? Merci pour vos réponses
Code : Tout sélectionner
<form action="index.php" method="post" name="action">
<tr>
<td width="23%"><strong>Forme juridique :</strong></td>
<td><select id="formejuridique" name="formejuridique">
<option value="Particulier">Particulier</option>
<option value="Societe">Société</option>
<option value="Association">Association</option>
</select></td>
</tr>
</form>
Code : Tout sélectionner
<tr>
<td><strong>Raison sociale :</strong></td>
<td><input type="text" id="societe" name="societe" size="35" value="" /></td>
<td><strong>Code APE :</strong></td>
<td><input type="text" name="codeape" size="10" value="" /></td>
</tr>
<tr>
<td width="23%"><strong>SIRET :</strong></td>
<td><input type="text" name="numsiret" size="35" value="" /></td>
<td width="23%"><strong>Num TVA Intra :</strong></td>
<td><input type="text" name="numtvaintra" size="35" value="" /></td>
</tr>