title: How to find the closest sibling in jQuery
body: <p>I am trying to learn jQuery, I have following mark up</p>
  <p>In a div, I have two texts date and description and two buttons edit and delete.</p>
  <p>When I click the edit button, I want to get the date and description of that div</p>
  <p>Here I am trying to get it using <code>parents()</code> selector, how can I use <code>closest()</code> selector here , if it is not possible with the current markup please suggest how can I proceed with <code>closest()</code> selector.</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$(document).ready(function() {
    //If i click on edit button . I want to select the corresponding date and description .How can we do that?
  
    $(".taskTemplate .edit").on('click', function(event) {
      editTask(event.target);
    });
  });
  
  function editTask(node) {
  
    var date = $(node).parents('.taskTemplate').find('.date').html();
    alert(date);
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;div class="taskTemplate"&gt;
    &lt;span class="date"&gt;205-10-09&lt;/span&gt;
    &lt;span class="desc"&gt;description of task&lt;/span&gt;
    &lt;input type="button" class="edit" value="edit"&gt;
    &lt;input type="button" class="delete" value="delete"&gt;
    &lt;span class="done"&gt;done&lt;/span&gt;
  &lt;/div&gt;
  
  &lt;div class="taskTemplate"&gt;
    &lt;span class="date"&gt;2015-11-19&lt;/span&gt;
    &lt;span class="desc"&gt;description of task2&lt;/span&gt;
    &lt;input type="button" class="edit" value="edit"&gt;
    &lt;input type="button" class="delete" value="delete"&gt;
    &lt;span class="done"&gt;done&lt;/span&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>