Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

allow only numbers and special characters in textbox using javascript

// Numeric Digits & Symbol only (Jquery)
    $('#valuepoints').keyup(function () {
        if (!this.value.match(/^(d|-)+$/)) {
            this.value = this.value.replace(/[^0-9-]/g, '');
        }
    });
Comment

PREVIOUS NEXT
Code Example
Javascript :: get cookie in javascript 
Javascript :: download a file nodejs 
Javascript :: install react router dom with npm 
Javascript :: javascript function loop through array 
Javascript :: findone sequelize 
Javascript :: react native image auto height 
Javascript :: regular expression twitter user 
Javascript :: days difference in moment js 
Javascript :: jspdf save in server 
Javascript :: how to clone array in js 
Javascript :: javascript sort numbers 
Javascript :: check to see if work is uppercase javascript 
Javascript :: onselect javascript 
Javascript :: link stylesheet in javascript 
Javascript :: javascript break foreach 
Javascript :: mongodb $in regex 
Javascript :: javascript count time 
Javascript :: get client id socket io 
Javascript :: javascript easiest way to get second parent 
Javascript :: how to remove minutes with moment js 
Javascript :: On pressing enter change the focus to the next input field 
Javascript :: react text input onchange 
Javascript :: to uppercase js 
Javascript :: how to run function after animation complete jquery 
Javascript :: js find index in list 
Javascript :: http to https express js 
Javascript :: why is my mongoose middleware not working 
Javascript :: toggle boolean js 
Javascript :: replace all character in string javascript 
Javascript :: typescript class constructor overload 
ADD CONTENT
Topic
Content
Source link
Name
7+6 =