Good afternoon,
@EDIT The fields are now accessible. However, what is typed is not masked as defined in the script.
Plugin: link
Code:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Cadastro</title>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jquery.maskedinput.js"></script>
<script>
jQuery(function($){
$(".data").mask("99/99/9999");
$(".telefone").mask("9999-9999");
});
</script>
</head>
<body>
<form action="">
<div class="data">
<label for="">Campo 1:</label>
<input type="text">
</div>
<div class="telefone">
<label for="">Campo 2:</label>
<input type="text">
</div>
<div class="">
<label for="">Campo 3:</label>
<input type="text">
</div>
<div class="">
<label for="">Campo 4:</label>
<input type="text">
</div>
<div class="">
<label for="">Campo 5:</label>
<input type="text">
</div>
</form>
</body>
</html>
As you can see I do not understand almost anything yet. I'm starting to learn. Thank you in advance!