<div style="background: url(http://www.example.com/image.jpg) center center/cover;">
This specific background image defined inline is being replaced by a rule in an external stylesheet:
div {
background-image: none !important;
}
Here's my query: with JavaScript/jQuery, what method can I use to retrieve the URL of the background image that was initially set in the inline styling but later overridden by CSS?
Note: Attempts to utilize .css()
prove unsuccessful since it only captures the computed background style, which in this case is none