Answers for "allow only numbers and special characters in textbox using javascript"

0

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, '');
        }
    });
Posted by: Guest on September-14-2021

Code answers related to "allow only numbers and special characters in textbox using javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language