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.
is there a better way to do that? here is the code i use:
var imagename = $("img",this).attr("src").split(".")[0];
var imageextension = $("img",this).attr("src").split(".")[1];
thanks.