node.nextSibling.style ne marche pas
Salut,
J'ai cette structure :
Code:
1 2 3 4 5
|
<select name="corps" id="corps">
<option value="-1">Chargement...</option>
</select>
<span id="loader" style="display: none;"><img src="images/loader.gif" alt="loading" /></span> |
Et coté JS :
Code:
1 2 3 4
|
else if (xhr.readyState < 4) {
document.getElementById('corps').nextSibling.style.display = "inline";
} |
Mais plutot ceci marche :
Code:
1 2 3 4
|
else if (xhr.readyState < 4) {
document.getElementById('loader').style.display = "inline";
} |
Où est le soucis?
Merci d'avance...:cry: