How to make a difference between a null text field input and a wrong text field input?
Hy everyone!
I have two text fields and also a button to check the input of the text fields.
I created a script that checks if the two fields are empty
if ((textXX == "") && (textYY == ""));
I also need to create a script that checks if ONE text field is empty and the OTHER
is wrong, and vice-versa. And this is where my problems begin.
If I write:
if ((textXX !== "Answer1") && (textYY == "")
Javascript will understand that (textXX " !== "Answer1") is equal to (textXX !== "")
So, how can I make my javascript read that an empty text field is not the same as a wrong text field?
I hope I have made myself crystal clear.
Thanks a lot for your reply!!
