jQuery: Selecting immediate siblings
<p>Suppose I have this HTML:</p>

<pre><code>&lt;div id="Wrapper"&gt;

  &lt;div class="MyClass"&gt;some text&lt;/div&gt;
  &lt;div class="MyClass"&gt;some text&lt;/div&gt;

  &lt;div class="MyBorder"&gt;&lt;/div&gt;

  &lt;div class="MyClass"&gt;some text&lt;/div&gt;
  &lt;div class="MyClass"&gt;some text&lt;/div&gt;
  &lt;div class="MyClass"&gt;some text&lt;/div&gt;

  &lt;div class="MyBorder"&gt;&lt;/div&gt;

  &lt;div class="MyClass"&gt;some text&lt;/div&gt;
  &lt;div class="MyClass"&gt;some text&lt;/div&gt;

&lt;/div&gt;
</code></pre>

<p>I want to get the text of the MyClass divs next to the one clicked on, in the order they're in.</p>

<p>This is what I have:</p>

<pre><code>$('#Wrapper').find('.MyClass').each(function () {
  AddressString = AddressString + "+" + $(this).text();
});
</code></pre>

<p>I know adds ALL the MyClass divs; I'm just wondering if there's a quick way to do it.</p>

<p>Thanks.</p>
