5
I’m trying 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 managed to get the father div from the button, but how do I get the value of the plan?
Actually you want to catch the brother? in case the input value "Default Plan"?
– Franchesco