Email validation

Hi, I am doing to survey project and i am not sure how to do the email validation so that only emails are accepted. can anyone assist me here?

You can use an input tag with the type set to email.

1 Like

thank you so much just noticed i had type set to text

Although I could type out the answer in a couple of lines, I think in the long term it will be more useful to do so with this link.

With simple issues like this, I would recommend to first google (step two in the Read-Search-Ask method).
Frequently Stackoverflow will show up, which is a really great place to find solutions to common problems like this.

Eventually, even though this forum is a great help, you don’t want to rely on it, but create a broad spectrum of resources which will assist you in your programming journey.

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.