Mascara para data e telefone
Preciso de ajuda para adicionar mascara ao meu código html, exemplo - imagem.
[img]http://arquivo.devmedia.com.br/forum/imagem/372811-20150823-164308.jpg[/img]
[img]http://arquivo.devmedia.com.br/forum/imagem/372811-20150823-164308.jpg[/img]
<html>
<head>
<meta charset="ISO-8859-1">
</head>
<body>
<table width="301" height="160" border="0" cellspacing="0" class="tabela">
<tr>
<td width="32" height="24">Data:</td>
<td width="265"><input type="text" name="data" maxlength="10" OnKeyPress="formatar('##/##/####', this)" ></td>
</tr>
<tr>
<td height="24">Tel.:</td>
<td><input type="text" name="tel" maxlength="12" OnKeyPress="formatar('##-####-####', this)" ></td>
</tr>
</tr>
</table>
</body>
</html>
Fabio Santos
Curtidas 0
Respostas
Marcio Araujo
23/08/2015
Pesquise sobre Mascara usando o JQuery, vai te ajudar.
GOSTEI 0
Fabio Santos
23/08/2015
Somente com JQuery Marcio, não queria, mas vou ver se consigo.
GOSTEI 0
Marcio Araujo
23/08/2015
Outra opção é só com javascript.
[url]http://maozinhadaweb.blogspot.com.br/2007/05/mscara-de-data-com-javascript_14.html[/url]
[url]http://maozinhadaweb.blogspot.com.br/2007/05/mscara-de-data-com-javascript_14.html[/url]
GOSTEI 0
Fabio Santos
23/08/2015
Agora sim, melhor a opção!
GOSTEI 0
Marcio Araujo
23/08/2015
Deu certo mesmo Fabio?
GOSTEI 0
Fabio Santos
23/08/2015
Deu certo mesmo Fabio?
Boa tarde, deu certo sim Marcio.
GOSTEI 0