Javascript form question

How do I validate the form input before sending it to the server?

Hi mpowers120765, welcome to the forum

What are the data types and acceptable values of your forms inputs?

The simplest way that covers most possibilities is to set pattern attributes on each input tag - and to use type=“email” for email inputs. That way you probably will not even need JavaScript for the validation.

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