I have create a textbox:
<script>
function isNumber(field) {
var re = /^[0-9]*$/;
if (!re.test(field.value))
{
field.value = field.value.replace(/\D/g,"");
}
}
</script>
<input type="text" id="1st" onkeyup="isNumber(this)"/
the script coding work fine but the problem exist while the user right click the field and paste the words.