2
I am applying a mask addition feature in my code, even when the user fills the phone or mobile, to chew be filled automatically. However, my page does not return anything while user type.
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1"><!-- Tag das dimensões do bootstrap -->
<!-- Bootstrap CSS -->
<link rel="icon" href="imagens/icon/favicon.png">
<!-- Bootstrap -->
<link href="bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="estilo.css" rel="stylesheet">
<script type="text/javascript">
$(document).ready(function(){
$('#telefone').mask('(00) 0000-0000');
});
</script>
</head>
<body>
<div class="cadusuario">
<div class="row">
<div class="col-md-4">
<form action="cadastrarusuario.php" method="POST">
<label>E-mail/Login</label>
<input type="text" class="form-control" placeholder="Digite seu e-mail.." id="login" name="login"><br>
<label>Nova Senha</label>
<input type="password" class="form-control" placeholder="Digite sua nova senha.." id="senha" name="senha"><br>
<label>Repita a Senha</label>
<input type="password" class="form-control" placeholder="Digite sua nova senha.." id="senha2" name="senha2"><br>
<label>Telefone</label>
<input type="text" class="form-control" placeholder="Telefone" id="telefone" name="telefone" ><br>
<label>Celular</label>
<input type="text" class="form-control" placeholder="Celular" id="celular" name="celular" ><br>
<button type="submit" class="btn btn-default btn-roxo">Cadastre-se</button>
</form>
</div>
</div>
</div>
</body>
which library he used?
– user60252
I didn’t really adhere to any library, which is best for running this code?
– Gabriel Henrique