Getting value of p tag with jquery
<p>Im using jquery to try to take the value text in a p tag.  </p>

<p>I set up an alert for testing to give me the value and it says "current stack is [object Object]" </p>

<p>My html for this is</p>

<pre><code>&lt;div id="player9"&gt;
    &lt;div class="player_stats"&gt;
      &lt;p class="player_name"&gt;&lt;/p&gt;
      &lt;p class="player_action"&gt;&lt;/p&gt;
      &lt;p class="player_money"&gt;&lt;/p&gt;
   &lt;/div&gt;
&lt;/div&gt;
</code></pre>

<p>My alert code is:</p>

<pre><code>alert("current stack is " + $("#player9").children(".player_stats").children("p.player_money"));
</code></pre>

<p>if I add .val() it comes back as undefined.
These values were set upon page load by:</p>

<pre><code>$(whichseat[seat]).children(".hand").children("p.bet").text(bet);
</code></pre>

<p>"whichseat[seat] and bet are based into the function.  They are setting correctly.</p>

<p>If I use firebug and checkout that specific p tag it says:</p>

<pre><code>&lt;p class="player_money"&gt;60000&lt;/p&gt;
</code></pre>

<p>How do I correctly grab that value?</p>

<p>Any help would be greatly appreciated!</p>
