Hello guys, I want to validated in my textbox only numbers shoud be entered and i found this code.
<script>
function isNumberKey(evt){
var charCode = (evt.which) ? evt.which : event.keyCode
if (charCode > 31 && (charCode < 48 || charCode > 57))
return false;
return true;
}
</script>
then i want to validated again only 1 number should be allowed . how to do this? tnx in advance. I mean. When you entered in textbox, only 1 be appeared and then the highest value to entred is 5 greater than five is not allowed. only 1-5. tnx guys.