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

comparing two email fields

P: n/a
Am looking for suggestions on comparing two email fields. Have looked in
the usual cut and past sites, but none seem to fit. the name of the two
fields are email and confirmEmail.

Any suggestions would be appreciated.
Nov 19 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
The guy upstairs said the following on 11/19/2006 10:56 AM:
Am looking for suggestions on comparing two email fields.
Compare the .value property of each input.
Have looked in the usual cut and past sites, but none seem to fit.
"usual cut and paste sites"? There's your problem.
the name of the two fields are email and confirmEmail.

Any suggestions would be appreciated.
if(field1Ref.value == field2Ref.value)

Read the group FAQ to learn how to get that field1Ref and field2Ref

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Nov 19 '06 #2

P: n/a
The guy upstairs wrote:
Am looking for suggestions on comparing two email fields. Have looked in
the usual cut and past sites, but none seem to fit. the name of the two
fields are email and confirmEmail.

Any suggestions would be appreciated.
function theSame(a,b){
return a==b;
}

Mick
Nov 19 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.