[jQuery] How to get file name

[jQuery] How to get file name


<img src="images/xxx.gif">
$('img').attr('src') -> This will get images/xxx.gif
How to get xxx.gif by jQuery?