-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
61 lines (59 loc) · 2.43 KB
/
index.html
File metadata and controls
61 lines (59 loc) · 2.43 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Validation App Using JavaScript</title>
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/css/bootstrap.min.css">
</head>
<body>
<div class="bg-light p-3 text-center">
<div class="h4 font-weight-bolder">Making An Expression Validation App Using JavaScript</div>
</div>
<div class="container mt-5">
<!-- start form -->
<form>
<div class="form-row my-2">
<div class="col my-2">
<select id="type" class="custom-select">
<option selected disabled value="null">Choose...</option>
<option value="email" class="email">E-mail</option>
<option value="phoneNumber" class="php">Phone Number</option>
<option value="postCode" class="">Post Code</option>
</select>
<div class="invalid-feedback">Please select one option</div>
</div>
<div class="col-sm-6 my-2">
<input type="text" id="user-input" class="form-control" placeholder="Input here">
<div class="invalid-feedback">Please provide a valid input</div>
</div>
<div class="col my-2">
<button type="submit" class="btn btn-primary">Check Validation</button>
</div>
</div>
</form>
<!-- end form here -->
</div>
<!-- start result table -->
<div class="container mt-5">
<table class="table table-hover">
<caption>List of Validation</caption>
<thead class="thead-primary">
<tr>
<th scope="col">Type</th>
<th scope="col">Input</th>
<th scope="col">Status</th>
</tr>
</thead>
<tbody id="result-list">
</tbody>
</table>
</div>
<!-- end result table -->
<script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/js/bootstrap.bundle.min.js"></script>
<script src="js/script.js"></script>
</body>
</html>