I have this function in javascript, and wanted to pass it to jquery. The user clicks a button in html and calls the function for a discount. '
<script>
function verifica(){
var preco = 100;
var desconto = 0.30;
var total;
if(document.getElementById('ssbc').checked == true){
total = preco -(preco*desconto);
}
if(document.getElementById('ssbc').checked == false){
total=preco;
}
alert("O valor de sua inscrição é: R$ "+total);
}
</script>'