title: JQuery get text within a specific set of p tags
body: <p>I have a problem trying to obtain text between a certain set of <code>&lt;p&gt;</code> tags using JQuery - here is the html that I currently have:</p>
  
  <pre><code>&lt;div class="mainarea"&gt;
      &lt;p&gt;
          &lt;strong&gt;Location: &lt;/strong&gt;
      &lt;/p&gt;
  
      &lt;!-- display search results --&gt;
      &lt;p&gt;
          You searched for
          &lt;strong&gt;"xyz"&lt;/strong&gt;.
      &lt;/p&gt;
  </code></pre>
  
  <p>I'm trying to get the text within the second set of <code>&lt;p&gt;</code> tags (You searched for ...), but I keep getting the text from the first <code>&lt;p&gt;</code> tag (Location ...).</p>
  
  <p>So far I have this function:</p>
  
  <p><code>$('.mainarea p')</code>, which returns "Location..." and have tried to add the .text() function to it, but this doesn't seem to help.</p>