I'm trying to alert visitors about a minimum amount, and I just reached the point where I can show the alert, but for all changes... The point is that I want only to show the alert when the user clicks on option value = 1.
Here's what I've got (missing the IF clause):
<script>
function MinPecas(quantidade) {
alert("MÍNIMO DE 30 PEÇAS PARA ORÇAMENTO");
}
</script>
<select name="quantidade" id="quantidade" onchange ="MinPecas(this.form)">
<option value="1">0 A 30 PÇS</option>
<option value="2">30 A 50 PÇS</option>
<option value="3">50 A 100 PÇS</option>
</select>
tag closing - it will work...
– sinisake Apr 06 '15 at 18:35