1
JQUERY
$('#caption-item-1').click(function(){
if($('#boleto-input').checked == true){
$('doacao-proximo-1').css({'display':'inline-block'});
}else{
$('doacao-proximo-1').css({'display':'none'});
}
})
HTML
<label for="boleto-input">
<input type="checkbox" name="" id="boleto-input">
<span class="check-for-bank"></span>
<img src="img/barcode.jpg">
</label>
...
<p id="doacao-proximo-1" style="display:none;">Próximo</p>
- I can’t get that when the
input
checked, the button appears. - The button is like
p
because when placed asbutton
, the page keeps recharging, even with apreventDefault()
Thank you if you can help me solve, or find a way to solve the problem.
perfect, it was just that @Miguel
– Murilo Melo
You’re welcome @Murilogambôa, it was just a distraction
– Miguel