Issue with innerHTML of label in javascript
<p>I tried to update label with text</p>

<pre><code>var label_count2 = document.createElement("label");              
        label_count2.setAttribute("id", "label_count2");     
        label_count2.style.textAlign = "right";
        label_count2.style.border = "none"; 

gradient_div.appendChild(label_count2);            
self.parent.appendChild(gradient_div);

 updateText : function (text){

        document.getElementById("label_count2").innerHTML = count; 

    },
</code></pre>

<p>when I tried to call to <code>updateText()</code> the value in the screen didn't change.</p>

<p>I checked it in the debugger and I saw that the value is correct.</p>

<p>i tried to change the <code>innerHTML</code> To <code>innerText</code> and it also didn't work.</p>

<p>If I add line <code>label_count2.innerHTML = "any text"</code> then I can see the value.</p>

<p>Could you advise me why it is not working from the function ?</p>
