-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathformevent.html
More file actions
63 lines (54 loc) · 1.53 KB
/
formevent.html
File metadata and controls
63 lines (54 loc) · 1.53 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<script src="./formevent.js"></script>
</head>
<body>
<!--
<form onsubmit="handleSubmit(event)">
ENTER NAME
<input type="text" id="txtName" onblur="checkName()">
<p id="pNameError"></p>
ENTER EMAIL
<input type="text" id="txtEmail">
ENTER AGE
<input type="text" id="txtAge" onkeyup="valid()">
<p id="pAgeError"></p>
<input type="submit" value="SUBMIT">
</form> -->
<form onsubmit="handleSubmit(event)">
<table>
<tr>
<td>ENTER NAME</td>
<td>
<input type="text" id="txtName" onblur="checkName()">
<p id="pNameError"></p>
</td>
</tr>
<tr>
<td>ENTER EMAIL</td>
<td>
<input type="email" id="txtEmail">
</td>
</tr>
<tr>
<td>ENTER AGE</td>
<td>
<input type="number" id="txtAge" onkeyup="valid()">
<p id="pAgeError"></p>
</td>
</tr>
<tr>
<td>
<input type="submit" value="SUBMIT">
</td>
</tr>
</table>
<div>
<p id="pName"></p>
<p id="pEmail"></p>
<p id="pAge"></p>
</div>
</form>
</body>
</html