-
Notifications
You must be signed in to change notification settings - Fork 7
/
formSample.html
56 lines (53 loc) · 1.42 KB
/
formSample.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
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="formSample.css">
<script type="text/javascript" src="formSample.js"></script>
<title>Student details</title>
</head>
<body>
<p>Please fill-in student detials</p>
<form onSubmit="return saveStudent()">
<ul>
<li>
<label for="fname">First name:</label>
<input type="text" id="fname" name="first_name">
</li>
<li>
<label for="lname">Last name:</label>
<input type="text" id="lname" name="last_name">
</li>
<li>
<label for="mail">E-mail:</label>
<input type="email" id="mail" name="student_email">
</li>
<li>
<label for="msg">Message:</label>
<textarea id="msg" name="student_message"></textarea>
</li>
<li>
<label for="status">Choose a car:</label>
<select name="status" id="status">
<option value="Married">Married</option>
<option value="Bachelor">Bachelor</option>
<option value="Divorcee">Divorcee</option>
<option value="Widower">Widower</option>
</select>
</li>
<li class="button">
<button type="submit">Save</button>
</li>
</ul>
</form>
<div>
<ul>
<li>
<button onclick="getStudentFromLocalStorage()">Get from local storage</button>
</li>
</ul>
</div>
<div id="time">
</div>
</body>
</html>