-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·132 lines (118 loc) · 6.49 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
<!DOCTYPE HTML>
<html lang="en">
<head>
<title>Lab 2</title>
<meta name="Author" content="Ethan Richardson" />
<meta name="Description" content="Form Verification" />
<link rel="stylesheet" type="text/css" href="style.css">
<script src="javascript.js"></script>
</head>
<body>
<center>
<header>
Your Opinion Matters!
</header>
<section>
<article>
First Name: Last Name:<br />
<input type="text" id="firstName" onchange="nameerr(this.value)">
<input type="text" id="lastName" onchange="nameerr(this.value)">
<p id="nameerr"></p><br />
Gender: <br /><br />
<input type="radio" id="male" value="male" onchange="gendererr(this, document.getElementById('female'))">Male
<input type="radio" id="female" value="female" onchange="gendererr(document.getElementById('male'), this)">Female
<p id="gendererr"></p>
<br />Age: <br /><input type="text" id="ageInput" onchange="ageerr(this.value)">
<p id="ageerr"></p>
<br /><form>Highest Degree Earned:
<select id="edu" onchange="eduerr(this.value)">
<option selected value="empty">Education...</option>
<option value="High School">High School</option>
<option value="Associate">Associate's</option>
<option value="Bachelor">Bachelor's</option>
<option value="Master">Master's</option>
<option value="Doctorate">Doctorate</option>
<option value="Other">Other</option>
</select>
</form>
<p id="eduerr"></p>
<br /><form>State:
<select id="state" onchange="validateForm()">
<option selected value="empty">State...</option>
<option value="Alabama">Alabama</option>
<option value="Alaska">Alaska</option>
<option value="Arizona">Arizona</option>
<option value="Arkansas">Arkansas</option>
<option value="California">California</option>
<option value="Colorado">Colorado</option>
<option value="Connecticut">Connecticut</option>
<option value="Delaware">Delaware</option>
<option value="Florida">Florida</option>
<option value="Georgia">Georgia</option>
<option value="Hawaii">Hawaii</option>
<option value="Idaho">Idaho</option>
<option value="Illinois">Illinois</option>
<option value="Indiana">Indiana</option>
<option value="Iowa">Iowa</option>
<option value="Kansas">Kansas</option>
<option value="Kentucky">Kentucky</option>
<option value="Louisiana">Louisiana</option>
<option value="Maine">Maine</option>
<option value="Maryland">Maryland</option>
<option value="Massachusetts">Massachusetts</option>
<option value="Michigan">Michigan</option>
<option value="Minnesota">Minnesota</option>
<option value="Mississippi">Mississippi</option>
<option value="Missouri">Missouri</option>
<option value="Montana">Montana</option>
<option value="Nebraska">Nebraska</option>
<option value="Nevada">Nevada</option>
<option value="New Hampshire">New Hampshire</option>
<option value="New Jersey">New Jersey</option>
<option value="New Mexico">New Mexico</option>
<option value="New York">New York</option>
<option value="North Carolina">North Carolina</option>
<option value="North Dakota">North Dakota</option>
<option value="Ohio">Ohio</option>
<option value="Oklahoma">Oklahoma</option>
<option value="Oregon">Oregon</option>
<option value="Pennsylvania">Pennsylvania</option>
<option value="Rhode Island">Rhode Island</option>
<option value="South Carolina">South Carolina</option>
<option value="South Dakota">South Dakota</option>
<option value="Tennessee">Tennessee</option>
<option value="Texas">Texas</option>
<option value="Utah">Utah</option>
<option value="Vermont">Vermont</option>
<option value="Virginia">Virginia</option>
<option value="Washington">Washington</option>
<option value="West Virginia">West Virginia</option>
<option value="Wisconsin">Wisconsin</option>
<option value="Wyoming">Wyoming</option>
</select>
</form>
<p id="stateerr"></p>
<br />Occupation: <br /><input type="text" id="occ" onchange="validateForm()"><br />
<p id="occerr"></p>
<br />Favorite Hobby: <br /><input type="text" id="hobby" onchange="validateForm()"><br />
<p id="hobbyerr"></p>
<br />Contact Phone: <br /><input type="text" id="num" onchange="validateForm()"><br />
<p id="phoneerr"></p>
<br />Contact Email: <br /><input type="text" id="email" onchange="validateForm()"><br />
<p id="emailerr"></p>
<br />Subject/Title: <br /><input type="text" id="subject" onchange="validateForm()"><br />
<p id="subjecterr"></p>
<br />Explaination: <br />
<textarea rows="4" cols="50" id="expain" name="explain" onchange="validateForm()"></textarea>
<br /><p id="explainerr"></p>
<button type="button" onclick="validateForm()">Validate</button>
</article>
</section>
<footer>
<small>
© Copyright 2015 Ethan Richardson
</small>
</footer>
</center>
</body>
</html>