For this module I created a form with three fields. The first field was a required field for any text, the second was for an email and the last was for a phone number. When the user clicks the button to validate the form a window pops up and lets them know the status of the fields if there were any issues.During this module I struggled to figure how to check if a field only contains blank spaces but I ended up using the trim() function.

To see the example visit http://erikalicea.esy.es/testing.html
Here is the code I used:

code