S
SAN CAZIANO
how can I create a function like this that let me insert only symbol (in
ascii code the symbol is from 33 to 47 and from 58 to 64 and from 91 to 96
and from 123 to 127)
function CampoSoloNumerico(evt)
{
evt = (evt) ? evt : event;
var charCode = (evt.charCode) ? evt.charCode : ((evt.keyCode) ?
evt.keyCode : ((evt.which) ? evt.which : 0));
if (charCode > 31 && (charCode < 48 || charCode > 57))
{
alert("Puoi inserire solo numeri!");
return false;
}
return true;
}
ascii code the symbol is from 33 to 47 and from 58 to 64 and from 91 to 96
and from 123 to 127)
function CampoSoloNumerico(evt)
{
evt = (evt) ? evt : event;
var charCode = (evt.charCode) ? evt.charCode : ((evt.keyCode) ?
evt.keyCode : ((evt.which) ? evt.which : 0));
if (charCode > 31 && (charCode < 48 || charCode > 57))
{
alert("Puoi inserire solo numeri!");
return false;
}
return true;
}