AnsweredAssumed Answered

What is wrong with my syntax in this conditional statement?

Question asked by csergent08 Champion on May 1, 2015
Latest reply on May 4, 2015 by csergent08

I am trying to see if a field is empty, but I am receiving a syntax error. Any ideas:

 

on(dom.byId("btnFeedback"), "click", function () {

        If(document.getElementById("eMail").value == null || document.getElementById("eMail").value == ""); {

            alert("not working");

        } else {

         

        sendEmail();

       

    }

      

    );

Outcomes