title: Get parent and add class to all links within
body: <p>I'm having an issue with adding classes on a nested menu.  When I click a link with the class get-view I need to add a class to ALL links within a containing div with the class nav-item including the link I clicked on.  I'm completely lost on how to select the containing div and apply a class to all links inside.  Any help is mucho appreciated.</p>
  
  <p>My html looks like this</p>
  
  <pre><code>&lt;div class="nav-item"&gt;
      &lt;a href="1.html" class="get-view subnav-main"&gt;&lt;span&gt;Main Link 1&lt;/span&gt;&lt;/a&gt;
  &lt;/div&gt;
  &lt;div class="nav-item"&gt;
      &lt;a href="2.html" class="get-view subnav-main"&gt;&lt;span&gt;Main Link 2&lt;/span&gt;&lt;/a&gt;
  &lt;/div&gt;
  &lt;div class="nav-item"&gt;
      &lt;div class="subnav-main subnav-more"&gt;
          &lt;a href="3.html" class="get-view subnav-main"&gt;&lt;span&gt;Main Link 3&lt;/span&gt;&lt;/a&gt;
          &lt;div class="subnav-subnav subnav-closed"&gt;
              &lt;a href="3.html" class="get-view"&gt;Sublink 1&lt;/a&gt;&lt;br /&gt;
      &lt;a href="4.html" class="get-view"&gt;Sublink 2&lt;/a&gt;&lt;br /&gt;
      &lt;a href="5.html" class="get-view"&gt;Sublink 3&lt;/a&gt;&lt;br /&gt;
          &lt;/div&gt;
      &lt;/div&gt;
   &lt;/div&gt;
  </code></pre>