sexta-feira, 17 de abril de 2009

Data - dd/mm/aaaa

Jscript

function formataData(obj) {
if(obj.value.length == 2 || obj.value.length == 5){
obj.value = obj.value + '/';
}
}

HTML

< input name="data" type="text" size="10" maxlength="10"
onkeyup="formataData(this)" />

Nenhum comentário:

Postar um comentário

Linux bash file returns unexpected token `$'do\r''

open file in vi edit with   vi filename.sh   command; type in vi  :set ff=unix  command; save file with  :wq It will save the file with unix...