I have a simple form which accepts an email address and a submit button.
After hitting submit i want:
- The input email field to validate that the input is an an email form
- If validation passes, to show a div with some text below the form input. ( The div is already created and in an initial state of hidden, so after submission and validation the div div.style.display = ‘block’
I dont want the custom message to show after submission and validation to show