Problème getElementById via Firefox 1.0.7
Bonjour a tous !
J'ai un problème javascript sur ma page ! Je souhaite afficher un bloc <tr></tr> sur un evenement ! Ce script marche très bien sous IE ! Mais sous Firefox y a quelques soucis ! j'arrive bien a faire disparaitre le bloc <tr></tr> (avec quelques bug d'affichage) mais lorsque je réaffiche celui ci il m'ajoute un retour a la ligne assez génant !
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
|
[html ...........]
<script>
function afficher(valeur){
if(valeur==1){
document.getElementById("nomclub").style.display = "block";
}else{
document.getElementById("nomclub").style.display = "none";
}
}
</script>
[html ...........]
<tr>
<td width="30%">
<?php echo $lang["REGISTER_TYPE"];?> <font color="#FF0000">*</font>
</td>
<td>
<select name="reg_type" class="inputbox" onChange="Javascript:afficher(this.value);">
<option value="0" selected>NON</option>
<option value="1">OUI</option>
</select>
</td>
</tr>
<tr id="nomclub" style="display:none">
<td width="30%">
<?php echo $lang["REGISTER_NOM"];?> <font color="#FF0000">*</font>
</td>
<td>
<input name="reg_nom" type="text" class="inputbox" size="20">
</td>
</tr>
[html ...........] |
Merci d'avance pour votre aide !