How to get an image name using jQuery?
<p>Let's says I have :</p>

<pre><code>&lt;img src='static/images/banner/blue.jpg' /&gt;
</code></pre>

<p>Using jQuery, how could I get the <code>blue</code> data ?</p>

<p>If I use <code>$('img').attr('src')</code>, I can get the whole URI. In that case, what is the best way to remove the extension and all the path ?</p>
