Currently, I am faced with an element on a website that has the following structure:
<div id="item" style="background-image: url('url to the image')"></div>
I am now in need of a JavaScript solution that can extract only the URL of this background-image and substitute it with a URL stored in a variable.
Is there a neat way to achieve this? :)