split method error in IE
<p>I want to get the image name and its extension of a some images with jquery. I use split method.it is ok in firefox but i IE it get the full address of image with domain name so it has some (.)s before getting the (.) of image extension.</p>

<p>is there a better way to do that?
here is the code i use:</p>

<pre><code> var imagename = $("img",this).attr("src").split(".")[0];
 var  imageextension = $("img",this).attr("src").split(".")[1];
</code></pre>

<p>thanks.</p>
