I'm facing a beginner's challenge.
I have a div element and I want to extract the URL from the data-element attribute into a .json file
Is there a way to do this?
<div content="" id="preview" data-element="http://thereislink"
class="sampleclass"></div>