3
Colleagues
I made this script to validate the access, but it’s not working. Can anyone tell me where the error is?
<html>
<head>
<title>title</title>
</head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.0/jquery.min.js">
<script type="text/javascript">
$('#submit').submit(function(){
alert('aqui');
return false;
});
</script>
<body>
<div id="success"></div>
<form id="contact-form" action="#" method="post">
<input name="Email" placeholder="Login" id="login" type="text" required >
<input name="Password" placeholder="Senha" id="senha" type="password" required>
<div class="sign-up">
<div align="center">
<button type="submit" value="Acessar" id="submit"/>Acessar</button>
</div>
</div>
</form>
</body>
</html>
I put it after HTML and it worked. Learning from the bugs ; ) . Thanks again Sergio.
– user24136