How to check object value?
<p>I can't figure out something in my test page made for fun.<br>
So, I can tell that I've got in my page object:</p>

<pre><code>&lt;b id="1i1"&gt;$&lt;/b&gt;
</code></pre>

<p>Which can change by some innerHTML in my script (which works fine).<br>
I want to check value of this object and compare it:</p>

<pre><code>function buttonPress()
{
    if(document.getElementById("1i1").value == "$")
    {
        //do something
    }
}
</code></pre>

<p>But output of <code>getElementById("1i1").value</code> in code above is <code>undefined</code>, not <code>"$"</code>.<br>
How I can get string value from this object?</p>
