Solved

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

Posted on 2013-05-21
4
252 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 10

Expert Comment

by:Ishaan Rawat
ID: 39186625
0
 
LVL 53

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 53

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

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

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

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…
Introduction JSON is an acronym for JavaScript Object Notation.  It is a text-string data transport mechanism, capable of representing simple or complex data structures in a consistent and easy-to-read manner.  Similar in concept to XML, but more e…
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…

739 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