Networking | Hardware | Software | Multimedia | System | Unix&Linux | MBA

Home>>Hardware>>Validating a textbox

Validating a textbox

Hello, I'm new in using javascript ,I'm developing an asp web app and I want to validate some textboxes but I don't Know how I can access them from the java script code and how I can prevent the page from going to the server after pressing the submit button.
Thanks.

You can validate several different ways. One easy way is with the use of patterns. Also, if you are validating credit card numbers, there are preset alogarithms I believe. I cannot remember the method names exactly but search google for pattern comparing/matching in javascript or credit card number validation in javascript...

Hope this helps.

It would help if you indicated exactly what it is you want to validate. Name? email? credit card number? or what?
If you decided to use the search facility on this forum using 'validate textbox ' or 'validate form' as your search terms you would find many examples. e.g.

http://www.codingforums.com/showthread.php?t=101928


 

TOP

Hyperthreading hurts s
HP sharpens blade PC l
Apple goes for Quad po
Itanium gets scaled do

For more info

HP sharpens blade PC l
Hyperthreading hurts s
can not call click() i
script does not work o
smart menu 
write to an html file 
FireFox doesn't recogn
Changing e.keyCode (e.
Clearing a range creat
UPDATE: My mouse over 

News Archive

onChange Help 
beforeload? vs onload.
Problem with document.
decreasing my javascri
Problem with \\ and \ 
how to stop scrolling?
Change Label Text Colo
Can I forward a page b
2 javascript functions
Validating a textbox 

Related stories:

onChange Help
beforeload? vs onload.
Problem with document.ignore in javascript
decreasing my javascript
Problem with \\ and \
how to stop scrolling?
Change Label Text Color and Its Shade of Disabled Buttons
Can I forward a page by the URL used to get to it?
2 javascript functions clashing...

Copyright@2004-2005 www.zzcoke.com All Right Reserved

advanced web statistics