How can I make a input field that automatically adds a dash after six digits.
Is should also only be possible to write numbers in the input field.
Can this be done using jQuery?
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.
Borrowing code from this post: How to allow only numeric (0-9) in HTML inputbox using jQuery?
You can add a condition to capture length.