title: prev(); and next(); usage clarification Jquery
body: <p>we have a series of divs, and we would like to assign different classes to the next and previous siblings of the currently selected DIV.</p>
  
  <p>This is our code:</p>
  
  <pre><code>&lt;div class="panel"&gt;DIV content 1&lt;/div&gt;
  &lt;div class="panel current"&gt;DIV content 2&lt;/div&gt; //THIS IS THE CURRENTLY SELECTED PANEL
  &lt;div class="panel"&gt;DIV content 3&lt;/div&gt;
  &lt;div class="panel"&gt;DIV content 4&lt;/div&gt;
  &lt;div class="panel"&gt;DIV content 5&lt;/div&gt;
  </code></pre>
  
  <p>As I understood, the following JQuery code would look for siblings of .current and add the classes next and previous. But since it's looking for .current elements, it'll not find em.
  How can I refer to the .current panel and addClass to the next and previous .panel elements?</p>
  
  <p>Thank you.</p>
  
  <pre><code>$('.current').prev().addClass('previous');
  $('.current').next().addClass('next');
  </code></pre>