-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathValidation Form.html
67 lines (57 loc) · 2.1 KB
/
Validation Form.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-4bw+/aepP/YC94hEpVNVgiZdgIC5+VKNBQNGCHeKRQN+PtmoHDEXuppvnDJzQIu9" crossorigin="anonymous" />
<title>Document</title>
</head>
<body>
<div class="container col-md-8">
<br />
<h1>Form Validation</h1>
<br />
<form name="theForm" method="post" id="myForm">
<label class="form-label">First Name</label>
<input type="text" class="form-control " id="Fname" required onKeyup="checkForm()" />
<div class="invalid-feedback">Please Enter Your First Name</div>
<br />
<label for="Lname" class="form-label">Last Name</label>
<input type="text" class="form-control " id="Lname" required onKeyup="checkForm()" />
<div class="invalid-feedback">Pleasetutymiujht Enater Your Last Name</div>
<br />
<label for="Email" class="form-label">Email Address</label>
<input type="email" class="form-control " id="Email" required onKeyup="checkForm()" />
<div class="invalid-feedback">
Please provide a valid city.Your Email
</div>
<br />
<label for="PassWord" class="form-label">Password</label>
<input type="password" class="form-control " id="Password" required onKeyup="checkForm()" />
<div class="invalid-feedback">Please Your Password</div>
<br />
<button id="submitForm" type="button" onclick="addFormData()" class="btn btn-primary" disabled>
Submit
</button>
</form>
<br />
<br />
<div id="table-contain">
<table class="table table-striped table-hover" id="dataTable" style="display: none">
<thead>
<tr>
<th>First Name</th>
<th>Last Name</th>
<th>Email</th>
<th>Password</th>
<th>Edit</th>
<th>Delete</th>
</tr>
</thead>
</table>
</div>
</div>
<script src="Validation-1.js"></script>
</body>
</html>