I have an element in a website that looks like this:
<div id="item" style="background-image: url('url to the image')"></div>
Now I need a javascript which extracts only the url of this background-image and replaces it with an url stored in a var.
How is this possible in a "neat" way :) ?