I have two loop statement like this
<input type="button" value="Test1" onclick="realopen()"/>
<br/>
<div class="test1">
<p id="outside"></p>
<br />
</div>
<div class="test2">
<p id="outred"></p>
<br />
and code is :
function realopen() {
    var hell = document.getElementsByClassName('test1')[0].childNodes;
    var twel = document.querySelectorAll("id=[outside]");
    var solo = document.getElementsByClassName('test2')[0].childNodes;
    var seap = document.querySelectorAll("id=[outred]");
    for (var i = 0; i < hell.length; i++) {
        setInterval(function () {
            for (var j = 0; j < twel.length; j++) {
                twel[j].innerHTML = 999;
            }
        }, 10000);
    }
    for (var x = 0; x < solo.length; x++) {
        setInterval(function () {
            for (var y = 0; y < seap.length; y++) {
                seap[y].innerHTML = 1234;
            }
        }, 10000);
    }
}
here , why in result we cannot get answer from both of loop statements ? result show only second loop statement content for me .
 
    