par
maxime.m » 30 janv. 2014, 15:19
Bonjour, mon problème est que je souhaite afficher un formulaire html par le biais d'ajax en utilisant comme condition d'affichage un checkbox.
Voici mon formulaire html :
<input onclick="afficher_form();" type="checkbox" id="check" value="1">Afficher estimation de revenus</input>
<tr>
<td colspan="6"><h2>Estimation revenus CA </h2></td>
</tr>
<tr>
<td>Année de début</td>
<td><input maxlength="4" name="annee_debut" id="annee_debut" type="text" style="width:75px; height:15px; text-align:center;" value=""></td>
<td>Année de fin</td>
<td><input maxlength="4" name="annee_fin" id="annee_fin" type="text" style="width:75px; height:15px; text-align:center;" value=""></td>
</tr>
<tr>
<th colspan="9"><input type="submit" name="Validez" value="Calculer" ></th>
</tr>
Bonjour, mon problème est que je souhaite afficher un formulaire html par le biais d'ajax en utilisant comme condition d'affichage un checkbox.
Voici mon formulaire html :
[html]
<input onclick="afficher_form();" type="checkbox" id="check" value="1">Afficher estimation de revenus</input>
<tr>
<td colspan="6"><h2>Estimation revenus CA </h2></td>
</tr>
<tr>
<td>Année de début</td>
<td><input maxlength="4" name="annee_debut" id="annee_debut" type="text" style="width:75px; height:15px; text-align:center;" value=""></td>
<td>Année de fin</td>
<td><input maxlength="4" name="annee_fin" id="annee_fin" type="text" style="width:75px; height:15px; text-align:center;" value=""></td>
</tr>
<tr>
<th colspan="9"><input type="submit" name="Validez" value="Calculer" ></th>
</tr>
[/html]