I have a set of buttons where I want to return the ID of the parent tag when a button is clicked to implement a function.
<div id="botoes">
<button data-for="cod" onclick="checkbox(this)">cod</button>
<button data-for="nome" onclick="checkbox(this)">nome</button>
<button data-for="barras" onclick="checkbox(this)">barras</button>
<button data-for="desc" onclick="checkbox(this)">desc.</button>
</div>
How do I do this? My "google-fu" did not help me ...