jquery file extensions
<p>i need one thing to do:</p>

<pre><code>&lt;li class="pdf"&gt;&lt;a href="#"&gt;failanosaukums.pdf&lt;/a&gt;&lt;/li&gt;
&lt;li class="excel"&gt;&lt;a href="#"&gt;failanosaukums.exel&lt;/a&gt;&lt;/li&gt;
&lt;li class="word"&gt;&lt;a href="#"&gt;failanosaukums.doc&lt;/a&gt;&lt;/li&gt;
</code></pre>

<p>If file exstensions are pdf, add li class pdf, and doc, exel, mp3. </p>

<p>I  think something like this</p>

<pre><code>var ext = ul li a each split (.) 
$(this).parent().addClass(ext)
</code></pre>
