Habilitar o botão submit com checkbox
Estou tentando habilitar um Botão Submit com um CheckBox
http://musicaomelhorpresente.com.br/form.php
<input type="checkbox" name="habi" value="checkAceito" onchange="HabiDsabi()">
<input type="submit" name="Submit" value="Enviar" disabled>
(...)
<script>
function HabiDsabi(){
if(document.getElementById('habi').checked == true){
document.getElementById('Submit').disabled = true }
if(document.getElementById('habi').checked == false){
document.getElementById('Submit').disabled = false }
}
</script>
Obrigado a quem puder me ajudar.Discussão (2)
Carregando comentários...