I want to get the value of the plan by clicking the button.
html
<div class="price-button">
<input type='hidden' name='plano' value='Plano Padrão' />
<button type="button" class="sel-plan" title="Selecionar">Selecionar Plano</button>
</div>
jquery
$('.sel-plan').click(function(){
var elementopai = $(this).parent().attr('class');
});
I was able to get the parent div of the button, but how do I get the value of the plan?