1
I have this function in javascript, and I wanted to pass it to jquery. The user clicks on an html button 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>`
Welcome, don’t forget to read this post https://pt.meta.stackoverflow.com/questions/1078/como-e-por-que-aceitar-uma-resposta/1079#1079
– user60252