Solved

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

Posted on 2013-05-21
4
249 Views
Last Modified: 2013-06-07
I have two textboxes, txtnumeric and txtname

i want txtnumeric to accept only numbers and txtname to accept only characters.
0
Comment
Question by:searchsanjaysharma
  • 2
4 Comments
 
LVL 9

Expert Comment

by:Ishaan Rawat
ID: 39186625
0
 
LVL 52

Accepted Solution

by:
Scott Fell,  EE MVE earned 500 total points
ID: 39197302
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
 

Author Closing Comment

by:searchsanjaysharma
ID: 39229042
tx
0
 
LVL 52

Expert Comment

by:Scott Fell, EE MVE
ID: 39230972
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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction HyperText Transfer Protocol (http://www.ietf.org/rfc/rfc2616.txt) or "HTTP" is the underpinning of internet communication.  As a teacher of web development I have heard many questions, mostly from my younger students who have come to t…
Requirements JQuery 1.6+ HTML CSS Introduction This article was inspired by an EE question (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28372511.html) on how to make a page show some balloons animate up a page…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now