Jquery based on class get previous class number
<p>I've this</p>

<pre><code>&lt;li class="sub_nivel nivel_3"&gt; level 3 &lt;/li&gt;
</code></pre>

<p>I need to on li over know the number of this "nivel_" in this case 3 so I can manipulate the previous nivel_2 z-index property.</p>

<p>How can I do this ?</p>

<p>Thanks</p>
