<script>
function num_only(){
    if((event.keyCode<48) || (event.keyCode>57)){
        event.returnValue=false;
    }
}
</script>


<form name='test'>
<input type=text name='numInputField' OnKeyPress="num_only()" />

</form> 

 

 

+ Recent posts