title: How do I select a sibling element using jQuery?
body: <p>Can you help me with this jQuery selector?</p>
  
  <pre><code>$(".auctiondiv .auctiondivleftcontainer .countdown").each(function () {
      var newValue = parseInt($(this).text(), 10) - 1;
      $(this).text(newValue);
  
      if (newValue == 0) {
          $(this).parent().fadeOut();
          chat.verify($(this).parent().parent().attr('id'));
      }
  });
  </code></pre>
  
  <p>Basically, I want to select the element with .bidbutton class that belongs in the same parent as the .countdown in the each loop:</p>
  
  <pre><code>&lt;div class="auctiondivleftcontainer"&gt;
      &lt;p class="countdown"&gt;0&lt;/p&gt;
      &lt;button class="btn primary bidbutton"&gt;Lance&lt;/button&gt;                            
  &lt;/div&gt;  
  </code></pre>
  
  <p>And then apply this to that button:</p>
  
  <pre><code>$(button here).addClass("disabled");
  $(button here).attr("disabled", "");
  </code></pre>