how to find text in span?
<p>When I click on <code>#liRightDescriptions</code> I need to find the text <code>"Descriptions"</code>.</p>

<p>How could I find it?</p>

<pre><code>&lt;li id='liRightDescriptions'&gt;
    &lt;span&gt;Descriptions 
        &lt;img class="removeImg" src="../Images/RemoveButton.ico" /&gt;
    &lt;/span&gt;
&lt;/li&gt;
</code></pre>

<p>I tried this, but it doesn't work!</p>

<pre><code>$(".btnPan").live("click", "span", function (e) {
    debugger;
    var text = $(this).html();
</code></pre>
