function isNumber(evt)
{
evt = (evt) ? evt : window.event;
var charCode = (evt.which) ? evt.which : evt.keyCode;
if (charCode > 59 && charCode < 64) // here m checking for < > ? characters only
{
return false;
}
return true;
}
// Call this javascript function onkeypress event of the text box like - onkeypress="return isNumber(event)"
{
evt = (evt) ? evt : window.event;
var charCode = (evt.which) ? evt.which : evt.keyCode;
if (charCode > 59 && charCode < 64) // here m checking for < > ? characters only
{
return false;
}
return true;
}
// Call this javascript function onkeypress event of the text box like - onkeypress="return isNumber(event)"