I have the code snippet below. I am expecting the div to have that background logo. It's not happening. All js files are loaded correctly as other parts of the page work fine.
Two questions:
1- Using a network sniffer I don't see a request for logo.png. Possible reasons why?
2- Is there a way to know what url path the browser is using without using a network sniffer? I wanted to know if I should use ./ or ../ or whatever for the correct full path.
<script type="text/javascript">
$(document).ready(function() {
$("#test").css("background-image", "SomeLongMultiLevelPath/logo.png" );
});
</script>
<div id="test">
</div>
url(images/image.png)?