I need a simple js function that will check if the value (an email address) in two text fields match.
If someone enters email@example.com in "fieldOne" and firstname.lastname@example.org in field two it would throw an error. If they matched, the form would submit silently.
Can someone help me out? I think it should be easy, and I'm trying to do it myself, I'm just not good enough at js.