Solved

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

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

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

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…
Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
The viewer will learn how to dynamically set the form action using jQuery.
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)

830 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