I want to get the background image in a div using jquery. I tried
var img = $('#id').attr('src');
but
alert(img)
shows up as null / undefined.
I tried this too document.getElementById('elementId').src;
but same result.
I also tried this var img = $('#outer').css('background-image');
shows up as url(s/bg.jpg)
What is wrong here?