Solved

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

Posted on 2013-05-21
4
248 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

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…
PROBLEM: The other day I was working on adding an ajax request to a webpage that already had a dialog box on the page.  The dialog box was using relative positioning to be positioned next to a form field I had on the page.  Everything was working…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. 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.: (CODE)
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…

758 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