I have a full path to an image, which I am using jQuery to read like this:
$(\'img.my_image\').attr(\'src\');
However I just want the f
In Javascript you could do
function getFileNameFromPath(path) { var ary = path.split("/"); return ary[ary.length - 1]; }