1

How can I input in the textbox and only accept numbers and symbols without use maskedinput?

eg : 12345-12

3 Answers 3

1

You might try this approach: How to allow only numeric (0-9) in HTML inputbox using jQuery?

Or perhaps: http://roshanbh.com.np/2008/04/textbox-accept-only-numbers-digits.html

Sign up to request clarification or add additional context in comments.

Comments

0

use a validation library and tweak the regex so that it matches what you want. i like this library. :)

1 Comment

hw to validate the date ? eg 900907 the frst 90 is year ,09 month n 07 is day... tq
0

http://bassistance.de/jquery-plugins/jquery-plugin-validation/

http://docs.jquery.com/Plugins/validation

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.