title: How can I remove a class from the span nearest span using jQuery?
body: <p>I have a page that allows visitors to add favorites to a list. It uses repeating rows to show items so generic classes are repeated.</p>
  
  <p>How can I show a single modal window (.closest or .prev?) if they all have the same class?</p>
  
  <p>Here is my fiddle: <a href="http://jsfiddle.net/psasj74L/" rel="nofollow">http://jsfiddle.net/psasj74L/</a></p>
  
  <pre><code>&lt;span class="jsCrateMaxModal most-wanted-modal-container hide"&gt;
      &lt;div class="most-wanted-modal"&gt;
          &lt;div class="most-wanted-content"&gt;
              One.
              &lt;div class="col-xs-12"&gt;
                  &lt;div class="btn-primary btn-block"&gt;OK&lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/span&gt;
  &lt;button class="jsShowMaxModal mostWantedOff"&gt;Show Modal&lt;/button&gt;
  </code></pre>
  
  <p>jQuery:</p>
  
  <pre><code>$('.jsShowMaxModal').click(function () {
      $(".jsCrateMaxModal").closest("span").removeClass("hide");
  });
  
  $('.most-wanted-modal-container').click(function () {
      $('.jsCrateMaxModal').addClass("hide");
  });
  </code></pre>