ciao a tutti,

ho un campo di testo dove vorrei inserire solamente un carattere tra A e P sia minuscolo che maiuscolo

ho visto lo script al post

http://forum.html.it/forum/showthrea...erminati+tasti

codice:
codice:
<script language='javascript'>
function SoloParentesi(_event)
{
  var keyPressed= _event.keyCode ? _event.keyCode : _event.which ? _event.which : _event.charCode;
	var isDigit;
	if (!isDigit)
  {
    var AllowedKeys = new Array(8, 28, 29, 40, 41)
		for(var i=0; i<AllowedKeys.length; i++)
      if(keyPressed == AllowedKeys[i])
        return true;
	}
  return false;
}
</script>

<input type="text" onKeyPress="return SoloParentesi(event)">
ma non so dove andare a cambiare per i tasti....
ho lo stringa
var AllowedKeys = new Array(8, 28, 29, 40, 41)
ma non capisco che numeri mettere...