• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 268
  • Last Modified:

How to make the textbox accept on numeric or character data in jquery

I have two textboxes, txtnumeric and txtname

i want txtnumeric to accept only numbers and txtname to accept only characters.
0
searchsanjaysharma
Asked:
searchsanjaysharma
  • 2
1 Solution
 
Ishaan RawatDesigner | Developer | ProgrammerCommented:
0
 
Scott Fell, EE MVEDeveloper & EE ModeratorCommented:
I use this project http://rickharrison.github.io/validate.js/ very easy.

Just remember that you should not trust validation from javascript as it can be disabled.  Make sure you validate your form data on the serverside too.

Good luck and let us know if you have any questions.
0
 
searchsanjaysharmaAuthor Commented:
tx
0
 
Scott Fell, EE MVEDeveloper & EE ModeratorCommented:
Thank you for the points.

The standard grading for closing a question is an "A".  Anything less means you had to do a good amount of extra work to resolve the problem .  If you are going to give a lower grade then an explanation should accompany.  This was not a question that needed much more explanation and if you liked the solution but were unsure how to use it, all you need to do as ask.

http://support.experts-exchange.com/customer/portal/articles/481419-what-grade-should-i-award-

What is the reason for a below normal grade?  
Padas
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now