Search
 
SCRIPT & CODE EXAMPLE
 

HTML

html input only numbers and special characters in textbox

$('.input').keyup(function () {
    if (!this.value.match(/^(d|-)+$/)) {
        this.value = this.value.replace(/[^0-9-]/g, '');
    }
});
Comment

PREVIOUS NEXT
Code Example
Html :: ramda js cdn 
Html :: ramda cdn 
Html :: owlcarousel 
Html :: login icon html 
Html :: capture image 
Html :: twig last item 
Html :: html label tag 
Html :: how to add public_html 
Html :: link node module in html 
Html :: pdf to html python 
Html :: mobile menu bootstrap 
Html :: card decks bootstrap 4.5 
Html :: bootstrap input tagsinput 
Html :: html date input pick only date 
Html :: c# to html 
Html :: mvc required field validation not working 
Html :: web application vs website 
Html :: message box html 
Html :: signature: Generated signature does not match submitted signature. 
Html :: how to resize submit button in html 
Html :: inline code html 
Html :: ONLINE VIDEO CALL FOR MY WEBSITE CODE 
Html :: html lang tab 
Html :: ubuntu 16.04 vmware 
Html :: toptal html interview questions 
Html :: Two way binding html templatevue js 
Html :: Testing the dom api 
Html :: get all values in hidden field with the same name 
Html :: twig check if variables iterable 
Html :: when I refresh my page it comes back to the same place html 
ADD CONTENT
Topic
Content
Source link
Name
7+7 =