I have input text area, and i need to limit imput symbols to only digits, +/-/” “. Is there any way to do that without making own JS file?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In HTML, you can set
<input pattern="[0-9+\- ]*">. Browser support to this HTML5 feature is limited, and author’s control over error reporting and handling are primitive.Normally people do this kind of browser-side checks with JavaScript. It does not require a JavaScript file; the code can be embedded in an HTML document.