Desactive une bouton
Bonjour, tt l monde
beh j'ai une page de commendation et j'ai 6 formulaire / chaque formulaire il y a un tableau ki contiene : le choix , le nombre , et bouton commande
le probleme mais amis je vx une fois clic sur commande / l bouton commande sera desactive
beh j'ai une page de commendation et j'ai 6 formulaire / chaque formulaire il y a un tableau ki contiene : le choix , le nombre , et bouton commande
le probleme mais amis je vx une fois clic sur commande / l bouton commande sera desactive
Configuration: Windows XP Internet Explorer 6.0
3 réponses
-
tu dois utiliser javascript pour ce faire
en premier veux tu que tous les boutons de commandes soit desactivé ou seulement celui ou l'on a cliquer ? -
bien ok
pour me donner une idée tous les boutons sont dans le meme formulaire ou chaque bouton appartiens a un formulaire distinct ? -
beh
j'ai 6 formulaire dans la page
dans chaque formulaire il contien le choix(x) et le nombre de (x) et une bouton commande-
-
@burnedsyn<td height="277"> <form name="form" method="post" action="">
<table width="461" border="0">
<tr>
<td width="141"><select name="type_cmd_vch" id="type_cmd_vch">
<option value="30 minutes">30 minutes</option>
</select>
</td>
<td width="213"><input name="quant_cmd_vch" type="text" id="quant_cmd_vch" maxlength="3"></td>
<td width="93"><input type="submit" name="Submit" value="Commandes" onClick="this.form.submit();this.disabled=true"></td>
</tr>
</table>
</form>
<form name="form1" method="post" action="">
<table width="461" border="0">
<tr>
<td width="141"><select name="type_cmd_vch" id="type_cmd_vch">
<option value="60 minutes">60 minutes</option>
</select></td>
<td width="213"><input name="quant_cmd_vch" type="text" id="quant_cmd_vch" maxlength="3"></td>
<td width="93"><input type="submit" name="Submit2" value="Commandes"></td>
</tr>
</table>
</form>
<form name="form2" method="post" action="">
<table width="461" border="0">
<tr>
<td width="141"><select name="type_cmd_vch" id="type_cmd_vch">
<option value="12 heurs">12 heurs</option>
</select></td>
<td width="213"><input name="quant_cmd_vch" type="text" id="quant_cmd_vch" maxlength="3"></td>
<td width="93"><input type="submit" name="Submit3" value="Commandes"></td>
</tr>
</table>
</form>
<form name="form3" method="post" action="">
<table width="461" border="0">
<tr>
<td width="141"><select name="type_cmd_vch" id="type_cmd_vch">
<option value="24 heurs">24 heurs</option>
</select></td>
<td width="213"><input name="quant_cmd_vch" type="text" id="quant_cmd_vch" maxlength="3"></td>
<td width="93"><input type="submit" name="Submit4" value="Commandes"></td>
</tr>
</table>
</form>
<form name="form4" method="post" action="">
<table width="461" border="0">
<tr>
<td width="141"><select name="type_cmd_vch" id="type_cmd_vch">
<option value="72 heurs">72 heurs</option>
</select></td>
<td width="213"><input name="quant_cmd_vch" type="text" id="quant_cmd_vch" maxlength="3"></td>
<td width="93"><input type="submit" name="Submit5" value="Commandes"></td>
</tr>
</table>
</form>
<form name="form5" method="post" action="">
<table width="461" border="0">
<tr>
<td width="141" height="26"><select name="type_cmd_vch" id="type_cmd_vch">
<option value="168 heurs">168 heurs</option>
</select></td>
<td width="213"><input name="quant_cmd_vch" type="text" id="quant_cmd_vch" maxlength="3"></td>
<td width="93"><input type="submit" name="Submit6" value="Commandes"></td>
</tr>
</table>
</form></td> -
@spartacus-mer1tu test avec Internet Explorer non ?
-
@burnedsynoui
mais l bleme c ke l bouton desactive just kel seconde -
@spartacus-mer1ca par contre c'est normal tu appelle la meme page dans ton form donc quand il la recharge les boutons sont réinitialiser
par contre ca empeche de clicker deux fois de suite avant que le form n'ai été traité
-