Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

only numeric values are allow in input jquery

//allow a number in textbox using jQuery.
$('#valuepoints').keypress(function (e) {    
  var charCode = (e.which) ? e.which : event.keyCode;
  if (String.fromCharCode(charCode).match(/[^0-9]/g))
    return false;
});   
 
PREVIOUS NEXT
Tagged: #numeric #values #input #jquery
ADD COMMENT
Topic
Name
9+6 =