<img src="../img/arnold.png" alt="Arnold">
Is there a way to retrieve the absolute path of this image using jQuery?
Currently, when I use img.attr("src")
, it only returns "../img/arnold.png", but I need it to return something like "http://site.com/data/2011/img/arnold.png" (full URL).