I'm trying to get the Style attribute from the HTML div tag using Jsoup. See the below is my div tag.
<div id="badge" class="er-badge" style="width: 576px; height: 369px; background: url("http://localhost:1020/er/ERImg/firmUploads/13854/LogoImg4.png") 0% 0% / cover no-repeat; z-index: 1; position: relative;" tabindex="0" data-preview-purposes="checked">
from this div tag style I want to extract only the background:
attribute. I can fetch the entire style properties using below code
String style = Element.attr("style");
But, I want to fetch only the background attribute value from this. Is it possible to extract that using Jsoup or Please tell any other easy way to extract the attribute. Thanks in advance.