title: jQuery toggle next ul li based on the icon click
body: <p>Trying to do accordion style display. </p>
  
  <p>Better reference to the kind of display I want:
  <a href="https://imgur.com/tr9cd52" rel="nofollow noreferrer">https://imgur.com/tr9cd52</a></p>
  
  <p>You will notice to the right of Lily there is an arrow, clicking on it should show the items under. </p>
  
  <p>My challenge is in traversing through the DOM correctly to locate the next ul to show/hide when button is clicked. How I do that?</p>
  
  <p>As I'm sure you can tell what I'm trying to do is show the nested style but in a box to create an accordion effect.</p>
  
  <p>Working fiddle <a href="https://jsfiddle.net/zigzag/aLb5d2uL/10/" rel="nofollow noreferrer">https://jsfiddle.net/zigzag/aLb5d2uL/10/</a></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>$('.menu-toggle').click(function(e) {
    e.preventDefault(); // prevent &lt;a&gt; to redirect to the top of the page
    $(this).nextall('ul').toggle();
  });</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.chartArea {
    padding: 20px 20px 0 0;
  }
  
  ul {
    list-style-type: none;
  }
  
  .glyphicon {
    color: white;
  }
  
  .tile {
    margin: 10px;
    padding: 20px;
    background-color: gray;
    font-family: segoe UI;
    color: white;
    min-height: 150px;
  }
  
  .empDetails {
    font-size: 14px;
    color: white;
  }
  
  .chartArea ul li {
    display: none;
  }
  
  .chartArea&gt;ul&gt;li {
    display: block;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" /&gt;
  &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"&gt;&lt;/script&gt;
  &lt;div class="container-fluid chartArea"&gt;
    &lt;ul&gt;
      &lt;li&gt;
        &lt;div class="tile"&gt;Adam&lt;/div&gt;
      &lt;/li&gt;
      &lt;li&gt;
        &lt;div class="tile"&gt;
          &lt;div class="col-sm-2 img_tile"&gt;
            &lt;img src="http://via.placeholder.com/50x50"&gt;
          &lt;/div&gt;
          &lt;div class="col-sm-8 empDetails"&gt;
            &lt;h4&gt;
              Lily
            &lt;/h4&gt;
            &lt;p&gt;
              Director
            &lt;/p&gt;
            &lt;p&gt;
              Ensure quality and timely delivery through resource and time management.
            &lt;/p&gt;
          &lt;/div&gt;
          &lt;div class="col-sm-2 toggle_button"&gt;
            &lt;a class="menu-toggle" href="#"&gt;
              &lt;span class="glyphicon glyphicon-menu-down"&gt;&lt;/span&gt;
            &lt;/a&gt;
          &lt;/div&gt;
        &lt;/div&gt;
        &lt;ul&gt;
          &lt;li&gt;
            &lt;div class="tile"&gt;
              &lt;div class="col-sm-2 img_tile"&gt;
                &lt;img src="http://via.placeholder.com/50x50"&gt;
              &lt;/div&gt;
              &lt;div class="col-sm-8 empDetails"&gt;
                &lt;h4&gt;
                  Sen
                &lt;/h4&gt;
                &lt;p&gt;
                  Manager
                &lt;/p&gt;
                &lt;p&gt;
                  Ensure quality and timely delivery through resource and time management.
                &lt;/p&gt;
              &lt;/div&gt;
            &lt;/div&gt;
          &lt;/li&gt;
          &lt;li&gt;
            &lt;div class="tile"&gt;Another Sen&lt;/div&gt;
            &lt;ul&gt;
              &lt;li&gt;
                &lt;div class="tile"&gt;Sen jr&lt;/div&gt;
              &lt;/li&gt;
            &lt;/ul&gt;
          &lt;/li&gt;
        &lt;/ul&gt;
      &lt;/li&gt;
      &lt;li class="tile"&gt;Justin&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Most of the code is posted above. I have some nested UL Li tags but can't find a way to create a logic that collapses or shows the list of objects around the click each time.</p>