Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

only numeric values are allow in input jquery

//allow a number in textbox using jQuery.
jQuery('.numbersOnly').keyup(function () { 
    this.value = this.value.replace(/[^0-9.]/g,'');
});
 
PREVIOUS NEXT
Tagged: #numeric #values #input #jquery
ADD COMMENT
Topic
Name
7+3 =