I have a form that I call the sameEmail () function in the onclick event.
<input type="checkbox" name="MesmoEmail" value="S" id="mesmoEmail" onclick="mesmoEmail();"> Mesmo e-mail do cadastro
And Javascript is this way:
<script>
function mesmoEmail(){
alert('aqui');
var marcado = document.getElementById('mesmoEmail');
}
</script>
The problem is that it is not working and the following error appears in the console:
Andinthesourcecode:
So far as I put the code, the word Same is in another color. I can not seem to identify the error.