I added jquery and another script at the bottom of my wiki page. However, if I can get node contents with regular javascript (getElementBy…), it doesn't work with jQuery ($("selector") where it always return null. Any idea why ?
You can see the console log here : http://ift.tt/1KRmFoq
And here is my code :
<script src="http://ift.tt/1yCEpkO"></script>
<script>
$(window).load(function(){
console.log(document.getElementById("wikicontent").innerHTML);
console.log($("#wikicontent").html());
});
</script>
Aucun commentaire:
Enregistrer un commentaire