Ir para conteúdo
Fórum Script Brasil
  • 0

Validação


fantasma

Pergunta

4 respostass a esta questão

Posts Recomendados

  • 0

HEHE DE UMA adaptada no seu codigo para funcionar .

<html>

<head>

<script language="JavaScript">

function teste(e) {

if(window.event) {

// for IE, e.keyCode or window.event.keyCode can be used

key = e.keyCode;

}

else if(e.which) {

// netscape

key = e.which;

}

if (key!=8 || key < 48 || key > 57) return (((key > 47) && (key < 58)) || (key==8));

{

    return true;

  }

}

</script>

</head>

<body>

<form>

<input type='text' class='textbox' name='ie' maxlength='8' onKeypress="return teste(event);">

</form>

</body>

</html>

Link para o comentário
Compartilhar em outros sites

Visitante
Este tópico está impedido de receber novos posts.


  • Estatísticas dos Fóruns

    • Tópicos
      152k
    • Posts
      651,8k
×
×
  • Criar Novo...