Extract a portion of text and show in another DIV

31 0 2

I tried watching other places but couldn't do it

I've got this id: TextText on multiple products on Shopify.

Then I have this code of a "popup" on each product, and I'd like to make it so that it'd look inside the product page and show the text where I wrote "EXTRACTED TEXT":

<div class="gamberorosso">
<img data-src="https://i.imgur.com/BEsMv3m.jpg" class="featured-image ls-is-cached lazyloaded" style="display:block; margin: 5px; width: 20px; height: 20px;z-index:9999;" src="https://i.imgur.com/BEsMv3m.jpg">
<div class="onhovergambero">EXTRACTED TEXT</div></div>

I know I can refer to it by using


{{ product.url | within: collection }}


 but I couldn't manage to give it the appropriate jQuery for it (I've seen other question suggestions


 but I couldn't integrate it)

hope someone will answer