title: Finding elements with .next() regardless of nesting
body: <p>Assuming this sort of structure:</p>
  
  <pre><code>&lt;li class="page-title"&gt;Global&lt;/li&gt;
  &lt;ul&gt;
      &lt;li class="element"&gt;Design Elements&lt;/li&gt;
      &lt;li class="page-title"&gt;Alerts&lt;/li&gt;
      &lt;ul&gt;
          &lt;li class="element"&gt;Alert 1&lt;/li&gt;
          &lt;li class="element active"&gt;Alert 2&lt;/li&gt;
          &lt;li class="element"&gt;Alert 3&lt;/li&gt;
          &lt;li class="element"&gt;Alert 4&lt;/li&gt;
          &lt;li class="element"&gt;Alert 5&lt;/li&gt;
      &lt;/ul&gt;
  &lt;/ul&gt;
  &lt;li class="page-title"&gt;Accounts&lt;/li&gt;
  &lt;ul&gt;
      &lt;li class="element"&gt;Accounts Main&lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>How can I step through the <code>.element</code> elements regardless of the nesting structure?</p>
  
  <p>Currently, I'm using <code>.next('.element')</code>, but at the top or bottom of the set of elements, it starts to return nulls.</p>
  
  <p>I'd like to avoid using some sort of "if this is the last in the set, set up a level and get back in" logic if possible. </p>
  
  <p>EDIT: I should clarify, I'm looking to step up and down a list of these having bound the up and down keys, so I need to be able to select the actual relative next element for whatever's got <code>.active</code>. </p>
  
  <p>So, assuming we're on Alert 2, a function I've left out runs based on a data-job attribute. We hit the up key, it steps to Alert 1, runs that function again. I'd like to be able to hit the up key again, and it pops up to 'Design Elements'.</p>