0

How do i find the value from the element inside an element

<div style="width: 15%" data-toggle="popover" data-placement="top" data-trigger="hover" data-html="true" role="button" data-original-title="" title="" data-content="<i>15%</i><b>Web Design</b>" class="grid custom_popover"></div>

How to extract the 15 from this linedata-content="<i>15%</i><b>Web Design</b>" The selector is the CSS selector.

I have used this div[data-content*="Web Design"]::attr(data-content)

which gives me this result 10%Web Design

But how to get this result 10%

0 Answers0