Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

type numeric value only in textbox javascript

function isNumber(evt) {
    evt = (evt) ? evt : window.event;
    var charCode = (evt.which) ? evt.which : evt.keyCode;
    if (charCode > 31 && (charCode < 48 || charCode > 57)) {
        return false;
    }
    return true;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #type #numeric #textbox #javascript
ADD COMMENT
Topic
Name
4+8 =