[firefox] onchange submit ne fonctionne pas
Bonjour
avec ce code je valide un formulaire
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
<form action="page_contact.php" method="post" name="form_contact">
<input name="contact" type="hidden" value="">
<input name="nav" type="hidden" value="">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="RSS">
<tr>
<td width="30%" height="30" class="3JC"> </td>
<td><label>
<select name="objet" id="objet" onChange="
document.getElementById(\'nav\').value = this.value;
document.form_contact.submit();">
<option value="Demande de renseignement">Demande de renseignement</option>
<option value="Création fiche" >Création fiche</option>
<option value="Modification fiche">Modification fiche</option>
</select>
</label></td>
</tr> |
sous ie pas de souci
mais sous ff ça ne valide pas !
j'ai essayé plus syntaxes differentes comme :
document.forms.submit();
document.forms[0].submit();
document.forms[\'form_contact\'].submit();
document.forms.form_contact.submit();
merci de votre aide