-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
280 lines (255 loc) · 11.6 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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
<!DOCTYPE html>
<html lang="en-IN">
<head prefix="og: https://ogp.me/ns# ">
<!-- Required meta tags -->
<title>:: Floating label input field with bootstrap.::</title>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="Floating label input field with bootstrap 5.0.0-alpha2 with proper validation." />
<meta name="keywords" content="Floating label input fields, Bootstrap floating label input, Floating label input with proper validation, " />
<meta name="theme-color" content="#0c5ca2">
<!--<meta name="theme-color" content="#0d123d">-->
<!-- Required og:image tags -->
<meta property="og:image" content="https://skwebs.github.io/bs-5apha2-floating-label-input-with-validation/assets/img/skwebs-logo.png">
<meta property="og:image:url" content="https://skwebs.github.io/bs-5apha2-floating-label-input-with-validation/assets/img/skwebs-logo.png">
<!-- Required favicon -->
<link rel="icon" type="image/png" href="https://skwebs.github.io/bs-5apha2-floating-label-input-with-validation/assets/img/skwebs-logo.png" sizes="16x16,32x32,64x64">
<!-- all css vendors file-->
<link rel="stylesheet" href="./assets/vendors/bootstrap/5.0.0-alpha2/bootstrap.min.css" />
<link rel="stylesheet" href="./assets/vendors/bootstrap/5.0.0-alpha2/bs5a2-reset-sm.css" />
<link rel="stylesheet" href="./assets/vendors/jquery-ui/1.12.1/jquery-ui.min.css">
<link rel="stylesheet" href="./assets/vendors/sweetalert2/10.6.1/sweetalert2.min.css" />
<link rel="stylesheet" href="./assets/css/style.css?v1.1" />
<link rel="stylesheet" href="./assets/css/floating-label-input.css" />
<!-- all page css -->
<style type="text/css">
</style>
</head>
<body>
<header>
<nav class="navbar sticky-top navbar-expand-lg navbar-light bg-light">
<div class="container">
<a class="navbar-brand" href="./">SKWebs</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse " id="navbarNav">
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<a class="nav-link active" aria-current="page" href="./">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="simple-msform.html">Simple Multi Step Form</a>
</li>
<li class="nav-item">
<a class="nav-link" href="nice-msform.html">Nice Multi Step Form</a>
</li>
<li class="nav-item">
<a class="nav-link" href="animated-msform.html">Animated Multi Step Form</a>
</li>
<li class="nav-item">
<a class="nav-link" href="bs5a2-float-label-elem.html">BS5a2 Float Label</a>
</li>
<li class="nav-item">
<a class="nav-link" href="pure-css-float-label-input.html">Pure CSS Float Label Input</a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://github.com/skwebs/bs-5apha2-floating-label-input-with-validation">Github</a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://github.com/skwebs/bs-5apha2-floating-label-input-with-validation/archive/master.zip">Download Code</a>
</li>
</ul>
</div>
</div>
</nav>
</header>
<main>
<div class="box d-flex p-3 my-5 py-md-5 justify-content-center align-item-center">
<div class="card shadow">
<div class="card-header">
<img height="80" class="d-block mx-auto border rounded-circle " src="./assets/img/skwebs-logo.png">
</div>
<div class="card-body px-4 pb-5">
<form id="regForm" class="needs-validation mx-auto" action="action.php" novalidate method="post" autocomplete="off">
<h3 class="pt-3 text-secondary text-center">Student Registration Form</h3>
<div class="py-3 text-center">
<span class="step"></span>
<span class="step"></span>
<span class="step"></span>
</div>
<div class="form-group ">
<input name="first_name"
id="first_name"
type="text"
class="inp form-control form-control-lg"
data-field-name="First Name"
title="Only alphabet characters are allowed. First Name must have minimum 3 characters, start with capital letter."
data-toggle="tooltip"
data-title="Only alphabet characters are allowed. <strong>First Name</strong> must have minimum 3 characters, start with capital letter."
autofocus="autofocus"
placeholder=" "
required
oninput="validateInp(this)"
pattern="^[A-Z]{1}[a-z]{2,10}$" >
<label for="first_name" class="form_label">First Name</label>
</div>
<div class="form-group">
<input name="mid_name"
id="mid_name"
type="text"
class="inp form-control form-control-lg"
data-field-name="Middle Name"
title="Only alphabet characters are allowed. Middle Name must have minimum 3 characters, start with capital letter."
data-toggle="tooltip"
data-title="Only alphabet characters are allowed. <strong>Middle Name</strong> must have minimum 3 characters, start with capital letter."
placeholder=" "
oninput="validateInp(this)"
pattern="^(\s*|[A-Z]{1}[a-z]{2,10})$">
<label for="mid_name" class=" text-md-right">Middle Name</label>
</div>
<div class="form-group">
<input name="last_name"
id="last_name"
type="text"
class="inp form-control form-control-lg"
data-field-name="Last Name"
title="Only alphabet characters are allowed. Last Name must have minimum 3 characters, start with capital letter."
data-toggle="tooltip"
data-title="Only alphabet characters are allowed. <strong>Last Name</strong> must have minimum 3 characters, start with capital letter."
placeholder=" "
required
oninput="validateInp(this)"
pattern="^[A-Z]{1}[a-z]{2,10}$" >
<label for="last_name" class="">Last Name</label>
</div>
<div class="form-group">
<select name="class"
id="class"
class="inp form-select form-select-lg"
data-field-name="Class"
title="Class is required field . Please select an option."
data-title="<strong>Class</string> is required field . Please select an option."
required
onchange="validateInp(this)"
pattern="[^\0]" >
<option value=""></option>
<option value="10+" >10+</option>
<option value="10" >10th</option>
<option value="9" >9th</option>
<option value="8" >8th</option>
<option value="7" >7th</option>
<option value="6" >6th</option>
<option value="5" >5th</option>
<option value="4" >4th</option>
<option value="3" >3rd</option>
<option value="2" >2nd</option>
<option value="1" >1st</option>
</select>
<label for="class" class="">Class</label>
</div>
<div class="form-group">
<select name="gender"
id="class"
class="inp form-select form-select-lg"
data-field-name="Gender"
title="Gender is required field . Please select an option."
data-title="<strong>Gender</string> is required field . Please select an option."
placeholder=" "
required
onchange="validateInp(this)"
pattern="[^\0]" >
<option value=""></option>
<option value="Female" >Female</option>
<option value="Male" >Male</option>
<option value="Other" >Other</option>
</select>
<label for="gender" class="">Gender</label>
</div>
<div class="form-group">
<input name="dob"
id="dob"
type="text"
class="inp form-control form-control-lg"
data-field-name="Date of Birth"
title="Date of birth is required field. Please select an option."
data-title="Please must select your <strong>date of birth</strong>."
placeholder=" "
required
oninput="validateInp(this)"
onchange="validateInp(this)"
pattern="^(?:(?:31(\/|-|\.)(?:0?[13578]|1[02]))\1|(?:(?:29|30)(\/|-|\.)(?:0?[13-9]|1[0-2])\2))(?:(?:1[6-9]|[2-9]\d)?\d{2})$|^(?:29(\/|-|\.)0?2\3(?:(?:(?:1[6-9]|[2-9]\d)?(?:0[48]|[2468][048]|[13579][26])|(?:(?:16|[2468][048]|[3579][26])00))))$|^(?:0?[1-9]|1\d|2[0-8])(\/|-|\.)(?:(?:0?[1-9])|(?:1[0-2]))\4(?:(?:1[6-9]|[2-9]\d)?\d{2})$" >
<label for="dob" class="">Date of Birth</label>
</div>
<div class="form-group">
<input name="mobile"
type="tel"
data-toggle="tooltip"
title="Only 10 digits mobile no. allowed that starts with 6,7,8 or,9."
id="mobile"
data-field-name="Mobile No."
data-title="Only 10 digits <strong>mobile no.</strong> allowed that starts with 6,7,8 or,9."
maxlength="10"
class="inp form-control form-control-lg"
placeholder=" "
required
oninput="validateInp(this)"
pattern="^[6-9]\d{9}$" >
<label for="mobile" class="">Mobile No.</label>
</div>
<div class="form-group">
<input type="text"
id="father"
data-toggle="tooltip"
title="Only alphabet, space and dot(.) are allowed in father's name, Must start with capital letter."
class="inp form-control form-control-lg"
name="father"
data-field-name="Father's Name"
data-title="Only alphabet, space and dot(.) are allowed in <strong>father's name</strong>, Must start with capital letter."
placeholder=" "
required
oninput="validateInp(this)"
pattern="^([A-Z][a-z]{2,}|[A-Z][a-z]*(\s|.\s|.|)[A-Z][a-z]{2,}|[A-Z][a-z]*(\s|.\s|.|)[A-Z][a-z]*(\s|.\s|.|)[A-Z][a-z]{2,})$" >
<label for="father_name" class="">Father's Name</label>
</div>
<div class="form-group">
<input type="text"
id="present_address"
name="present_address"
data-field-name="Present Address"
data-toggle="tooltip"
data-title="Only alphanumeric, space and , . - + symbols are allowed in <strong>present address</strong> field."
class="inp form-control form-control-lg"
title="Only alphanumeric, space and , . - + symbols are allowed in present address field."
placeholder=" "
required
oninput="validateInp(this)"
pattern="^[A-Z][a-zA-Z0-9\s,+-\.]+$" >
<label for="present_address" class="">Present Address</label>
</div>
<input type="submit" id="submit" name="submit" value="Register" class="btn btn-primary" >
</form>
</div>
</div>
</div>
</main>
<footer class="bg-light text-muted">
<div class="text-center p-4 small-text" >Hi, I am Satish. I like coding and always try to create modern code for beginners.</div>
<!-- copyright section -->
<section class="copyright my-auto py-4 text-center ">
©
<script>
document.write(new Date().getFullYear())
</script> Designed & Developed by <a href="https://skwebs.github.io">SKWebs</a>
</section>
<!-- // copyright section -->
</footer>
<!-- all vendors js file-->
<script src="./assets/vendors/jquery/3.5.1/jquery.min.js"></script>
<script src="./assets/vendors/jquery-ui/1.12.1/jquery-ui.min.js"></script>
<script src="./assets/vendors/bootstrap/5.0.0-alpha2/bootstrap.bundle.min.js" ></script>
<script src="./assets/vendors/sweetalert2/10.6.1/sweetalert2.min.js" ></script>
<script defer src="./assets/js/app.js"></script>
</body>
</html>