This is a discussion on "writing a function to verify data inputted in textboxes" within the JavaScript Forum section. This forum, and the thread "writing a function to verify data inputted in textboxes are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
writing a function to verify data inputted in textboxes
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
writing a function to verify data inputted in textboxes
Although I've read and read information on javascript, I still can't put together a function that checks to make sure the correct data is being inputted in some textboxes.
I have five textboxes that I've created in ASP but now need to create a script that can verify whether the user inputted data or not. Can anyone guide me on how I can set this up? There is a textbox that requires "numbers" only, when I place "string characters" in the box, it errors out. How can I avoid this from happening? Thanks in advance. |
|
|
|
|||
|
Re: writing a function to verify data inputted in textboxes
Quote:
|
|
|||
|
Re: writing a function to verify data inputted in textboxes
Sounds like you might want to look at regular expressions. A bit cryptic, but may be just what your looking for if you want to check for certain characters. Also if your using input boxes, they are strings automatically and you may have to use parseInt() to make them integers.
|
![]() |
| Tags |
| writing, function, verify, data, inputted, textboxes |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Binding Textboxes | RubyRue | ASP.NET Forum | 2 | Feb 21st, 2008 17:51 |
| multiple table data retrieval with function | Wheatus7 | Databases | 0 | Jun 26th, 2007 13:01 |
| plz help me verify this... calling function | melvinoyh | JavaScript Forum | 0 | May 29th, 2006 01:35 |
| Lists, Buttons and Textboxes | callamac | Web Page Design | 4 | Apr 6th, 2006 13:39 |
| autofill textboxes | hamboy | Web Page Design | 3 | Feb 14th, 2006 19:42 |