Fonction javascript qui ne fonctionne pas sous IE
Bonjour j'ai un checkbox qui,coché, doit activer un bouton
ca marche sous mozilla mais pas sur IE voici ma fonction
Code:
1 2 3 4 5 6 7 8 9 10
|
<script type="text/javascript">
function verifie(){
if (document.getElementById('checke').checked){
document.getElementById('submite').disabled =false;
}
else {document.getElementById('submite').disabled =true; }
}
</script> |
voici mon checkbox
Code:
1 2 3 4
|
<td align="right" bgcolor="#CCFF99"><span style="color: rgb(255, 0, 0);">*</span><b>I have read and accepted the <?php echo "<a href=\"javascript:void(0)\"; onClick=\"window.open('algemenevoorwaarden.php','_blank','menubar=no,location=no,directories=no,status=no,copyhistory=no,height=400,width=800,toolbar=no,scrollbars=yes,resizable=yes');\"><strong>Terms of use</strong></a> ";?></b></td>
<td nowrap align="left"><input name="termsofuse" type="checkbox" id="checke" onClick="verifie()" /></td>
</tr> |
et voici mon bouton
Code:
1 2 3 4 5
|
<tr>
<td height="26" class="propTD"><input name="Envoyer" id="submite" disabled="disabled" type="submit" value="Register" onClick="return f1()" />
</td>
</tr> |