To verify that any item has been selected using Jquery Selectors
<p>I have a situation like this,
Iam trying to select a label using Id selector and sets its value..Due to some reason it doesnt seem to be working</p>

<pre><code> $(document).ready(function () {
                $("#Label3").val("hii");
            });
</code></pre>

<p>How do I verify that  <code>$("#Label3")</code>  has indeed selected the label.</p>

<p>The label is rendered like this:</p>

<pre><code>&lt;span id="Label3"&gt;&lt;/span&gt;
</code></pre>
