Am I correctly getting the label text?
<p>I have some JS that reads an asp label's text and based on that sets a div visible or not.   </p>

<pre><code> function setToLabel() {
        text = document.getElementById('add_view');
        lbl = document.getElementById('lblAddVisible');
        var isHidden = text.innerText == 'true';
        text.style.display = isHidden ? 'block' : 'none';
    }

    $(document).ready
(
     function()
     {
         setToLabel();
     }

);
</code></pre>

<p>The problem is it only works if I explicitly set the isHidden variable. When I tell it to read the label to get the bool, it does not ever work.</p>

<p>Thanks</p>
