Thursday, January 19, 2017
Lab 9 Reflection Journal
For lab 9 I had to create a form and have it validated using JavaScript. This lab was also very challenging for me because it was very confusing having it be completely validated with no errors. I created the table using the input and label tags, I didn't put them in a table. The form asks for the first and last name, date of birth, age, email and zip code. First I made sure that it resets and then I used JavaScript to make functions which I linked to the submit button using the onclick event handler. If you submit it without filling out anything pop ups will appear telling you to fill out those areas left blank. If you put it in correctly then it wouldn't say anything about it. The age was a way to confirm if the birthday entered is true or false. The limit I put on the age was 100. Also I learned about how you had to use regular expressions for the illegal characters. This lab is useful because I can use it in the future for companies/clients who are selling things or anything that requires making a form online.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment