jeudi 23 avril 2020

JavaScript If statement works but Else statement does not work [closed]

I'm trying to validate email input and I want to display a success message when the user clicks submit button after typing some text/number in input and I want to display an error message if user clicks the button without typing anything. The problem is : that only if statement works but else statement does not work. Thanks so much in advance.

JavaScript code

Aucun commentaire:

Enregistrer un commentaire