Form validation and custom function

Hi

I have a simple form which accepts an email address and a submit button.

After hitting submit i want:

  1. The input email field to validate that the input is an an email form
  2. 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

1 Like