By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,568 Members | 1,194 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,568 IT Pros & Developers. It's quick & easy.

validate more than one

P: 1
I am a newbie. I don't know javascript. I use the free javascripts and try to understand them.
I have a javascript now, to validate username and password. I paste it below. My question now. Is it possible to let it validate more than one username and password?
For example text3 and text4?

<input type="text" name="text2">
<input type="password" name="text1">
<input type="button" value="Check In" name="Submit" onclick=javascript:validate(text2.value,"free",tex t1.value,"javascript") >


Thank you in advanced!

Jul 17 '08 #1
Share this Question
Share on Google+
3 Replies

P: 198
What type of validation do you need?

Input validation ? or validation from data table.

Jul 17 '08 #2

P: 13,264
Isn't that just a matter of passing the text3 and text4 values where the text1 and text2 values are being passed?
Jul 17 '08 #3

Expert Mod 5K+
P: 5,343
of course ... this is possible, it is just a matter of the the implementation of the validation function ... just post the code of the validate()-function ... so we might have a look at and give you some hints on how to adapt it for your needs.

kind regards
Jul 17 '08 #4

Post your reply

Sign in to post your reply or Sign up for a free account.