Im using Mvc and jquery, i would like to know how can I get an image to display.
I have
<img src="@Url.Action("GetImage", "Dashboard")" id="images" alt="image description" width="100" height="72" />
and inside my scrip tags I have
<script type="text/javascript">
getTheme();
var imageSource = $('#images');
var newimg = $('.logo');
newimg.css({'background-image', 'Url('+imageSource+')'});
</script>
I want this to be the source:
The image is just not showing can you help me.
change
to
to get the actual path and not the DOM-Element.