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. Advertising

  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. Advertising

  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. Advertising

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. Comparing fields

    , Oct 24, 2006, in forum: ASP General
    Replies:
    3
    Views:
    120
    Anthony Jones
    Oct 26, 2006
  2. bateman5
    Replies:
    10
    Views:
    286
    Brian Genisio
    Feb 17, 2004
  3. 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:
    120
    M.i.r.a.g.e.
    Sep 2, 2004
  4. AMT2K5
    Replies:
    1
    Views:
    197
    Eric Schwartz
    Nov 8, 2005
  5. Replies:
    3
    Views:
    128
    John W. Krahn
    Nov 28, 2007
Loading...

Share This Page