title: jQuery find next element with class
body: <p>I have a quite simple question, that ate me 4 hours and is not yet solved: How to find next span with specific class with jQuery?
  I have the following html</p>
  
  <pre><code>&lt;tr&gt;
      &lt;td align="right"&gt;Име:&amp;nbsp;&lt;/td&gt;
      &lt;td align="left"&gt;
           &lt;input type="text" value="&lt;?=$profileSQL['user_name']; ?&gt;" name="user_name" class="input required" /&gt;
      &lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
      &lt;td align="right" colspan="2"&gt;
           &lt;span class="error"&gt;&lt;/span&gt;
      &lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p>and I validate it with jQuery.
  I want if there's an error message, generated with js (just a string), jQuery to find nearest span with class <code>.error</code> and to <code>text()</code> the message in there. I tried with <code>nextAll()</code>, <code>next("span.error")</code> and a lot of other things, but nothing helped me. </p>
  
  <p>Thanks in advance!</p>