Merged emailvalidation social

I am getting undefined


On Thu, Sep 4, 2014 at 1:59 AM, frodo14 <notifications@github.com> wrote:

> In public/js/form-validators.js:
>
> > @@ -153,4 +153,86 @@ function validateSignupForm() {
> >    }
> >  }
> >
> > +// Validate Email ID
> > +function validateResendEmailForm() {
> > +  var emailId   = document.forms["resendValidationMail"]["email"].value;
>
> Afaik There cannot be any DOM element without a type . Can you tell what
> is the type you get when you print typeOf for the form ? Best, Vishak Nag
> … <#1483fe42411f15ff_>
>  On Sep 3, 2014, at 10:42 PM, Legolas <notifications@github.com> wrote:
> In public/js/form-validators.js: > @@ -153,4 +153,86 @@ function
> validateSignupForm() { > } > } > > +// Validate Email ID > +function
> validateResendEmailForm() { > + var emailId =
> document.forms["resendValidationMail"]["email"].value; Hi Vishak, I
> believe, you meant check the type of email and not the form right ? because
> form does not have type, but input element has. Kindly clarify. I need to
> do the below: typeof document.forms["resendValidationMail"]["email"] !==
> 'undefined' … — Reply to this email directly or view it on GitHub.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/lord-of-the-rings/fellowship/pull/6/files#r17102222>.
>