title: Using jQuery prev() method to grab text of H2?
body: <p>Can't seem to get this working. Any ideas?</p>
  
  <p>I'm trying to grab the text that appears between <code>&lt;h2&gt;&lt;/h2&gt;</code> while working with the input field as a starting location.</p>
  
  <p>jQuery:</p>
  
  <pre><code>$(".title input").each(function(){
      alert( $(this).prev('h2').text() );
  }
  </code></pre>
  
  <p>Html:</p>
  
  <pre><code>&lt;div class="tabbertab"&gt;
      &lt;h2&gt;English (US)&lt;/h2&gt;
      &lt;div class="title"&gt;
          &lt;div&gt;
              &lt;label for="title"&gt;Title *&lt;/label&gt;
          &lt;/div&gt;
          &lt;input id="title[en_US]" type="text" name="title[en_US]" value="" class="error"&gt;
  &lt;/div&gt;
  </code></pre>