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 not get the button to appear when
input
is checked. - The button is as
p
because when set tobutton
, the page reloads, even withpreventDefault()
Thanks if you can help me solve it, or find a way to solve the problem.