2
How do I create a button, that when clicking "pp" appears the value "r$70,00" and "p" appears "r$100,00", "M" "r$150,00" and "G" "r$180,00"
I want to use html and js, Look how you do now,
<select style="margin: 0 5% 0 13%;" name="service" required class="border-box-contact">
<option value="" disabled selected>Tamanho</option>
<option value = 1>PP (~1,2kg)</option>
<option value = 2>P (~1,8kg)</option>
<option value = 3>M (~2,5kg)</option>
<option value = 4>G (~3,5kg)</option>
<script>
if( value = 1){
return "Preço: R$ 70,00"
}else if (value = 2){
return "Preço: R$ 100,00"
}else if (value = 3){
return "Preço: 150,00"
}else if (value = 4){
return "Preço: 180,00"
}
</script>
I’m not getting to play, somebody help me?
In case the change is going to be in this own select ai would have 3 buttons that when clicking it would change the value of this select ?
– Bulfaitelo