I have the following code:
<div class='premios text-center col-xs-12'>
<div class='div-img-premio'>
<img class='img-premio img-responsive' src='$imagem'>
</div>
<p class='nome-premio'>".$nome."</p>
<p class='preco-premio'>".$preco."</p>
<input class='idPremio' type='hidden' value='$id'>
</div>
I want to get the value of .idPremio
, when a click happens on the .remios, however I have several divs.
Can I click on any div, but always comes the value of the first .idPremio.
Thank you.