9
I own several structures that follow a unique style:
<div data-id="1">
<div>
<button>Descobrir é o data-id desta estrutura</button>
</div>
</div>
with jQuery or Javascript as I could get the data-id
(1) of the div through the click
in the button
?
$('button').parent().parent().data('id');
– Diego Souza