comparing two email fields

Discussion in 'Javascript' started by The guy upstairs, Nov 19, 2006.

  1. 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.
     
    The guy upstairs, Nov 19, 2006
    #1
    1. Advertisements

  2. The guy upstairs

    Randy Webb Guest

    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/
     
    Randy Webb, Nov 19, 2006
    #2
    1. Advertisements

  3. The guy upstairs

    mick white Guest

    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
     
    mick white, Nov 19, 2006
    #3
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. GenxLogic
    Replies:
    3
    Views:
    1,969
    andrewmcdonagh
    Dec 6, 2006
  2. call_me_anything
    Replies:
    4
    Views:
    713
    Pete Becker
    Sep 30, 2007
  3. Cyril.Liu
    Replies:
    0
    Views:
    627
    Cyril.Liu
    Dec 2, 2008
  4. Comparing fields

    , Oct 24, 2006, in forum: ASP General
    Replies:
    3
    Views:
    218
    Anthony Jones
    Oct 26, 2006
  5. bateman5
    Replies:
    10
    Views:
    443
    Brian Genisio
    Feb 17, 2004
  6. M.i.r.a.g.e.

    Comparing two 12hr time fields

    M.i.r.a.g.e., Aug 30, 2004, in forum: Javascript
    Replies:
    4
    Views:
    272
    M.i.r.a.g.e.
    Sep 2, 2004
  7. AMT2K5
    Replies:
    1
    Views:
    325
    Eric Schwartz
    Nov 8, 2005
  8. Replies:
    3
    Views:
    271
    John W. Krahn
    Nov 28, 2007
Loading...