5
Good afternoon,
@EDIT The fields are now accessible. However, what is typed is not masked as preset in the script.
Plugin: http://digitalbush.com/projects/masked-input-plugin/
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 understand almost nothing yet. I’m starting to learn. Thanks in advance!
What do you mean "impossible to access in a PHP page"? do you mean that you cannot receive the input value on the server? or that the input does not work and the user cannot write to it? You can put the HTML you have?
– Sergio
@Sergio, you cannot type anything in the input, you click inside it and try to type but nothing is inserted.
– Luan Vicente
Can you [Edit] the question and put your HTML? If you make a jsFiddle is ideal...
– Sergio
So the problem is certainly not related to php. Can you edit your question and put the form code with the inputs as well? Maybe it helps to find the error
– Andrei Coelho
Sergio and Andrei Coelho, edited.
– Luan Vicente