"registration"
Bootstrap 4.0.0 Snippet by 20152658

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
<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<link href="//netdna.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//netdna.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-2.1.3.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<div class="container">
<form class="form-horizontal" role="form">
<h2>Registration</h2>
<div class="form-group">
<label for="firstName" class="col-sm-3 control-label">First Name</label>
<div class="col-sm-9">
<input type="text" id="firstName" placeholder="First Name" class="form-control" autofocus>
</div>
</div>
<div class="form-group">
<label for="lastName" class="col-sm-3 control-label">Last Name</label>
<div class="col-sm-9">
<input type="text" id="lastName" placeholder="Last Name" class="form-control" autofocus>
</div>
</div>
<div class="form-group">
<label for="email" class="col-sm-3 control-label">Email* </label>
<div class="col-sm-9">
<input type="email" id="email" placeholder="Email" class="form-control" name= "email">
</div>
</div>
<div class="form-group">
<label for="password" class="col-sm-3 control-label">Password*</label>
<div class="col-sm-9">
<input type="password" id="password" placeholder="Password" class="form-control">
</div>
</div>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
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
body {
background: url('https://static-communitytable.parade.com/wp-content/uploads/2014/03/rethink-target-heart-rate-number-ftr.jpg') fixed;
background-size: cover;
}
*[role="form"] {
max-width: 530px;
padding: 15px;
margin: 0 auto;
border-radius: 0.3em;
background-color: #f2f2f2;
}
*[role="form"] h2 {
font-family: 'Open Sans' , sans-serif;
font-size: 40px;
font-weight: 600;
color: #000000;
margin-top: 5%;
text-align: center;
text-transform: uppercase;
letter-spacing: 4px;
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
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
$(function(){
$.validator.setDefaults({
highlight: function(element){
$(element)
.closest('.form-group')
.addClass('has-error')
},
unhighlight: function(element){
$(element)
.closest('.form-group')
.removeClass('has-error')
}
});
$.validate({
rules:
{
password: "required",
birthDate: "required",
weight: {
required:true,
number:true
},
height: {
required:true,
number:true
},
email: {
required: true,
email: true
}
},
messages:{
email: {
required: true,
email: true
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments:

This JQuery script doesn't work!

valentinacorvasce (-1) - 4 years ago - Reply -1


This JQuery is useless. When I compile form inputs and those which have the [*] symbol remain empty I don't see the "please enter password" or "please enter your height" etc. messages...Fix it!

valentinacorvasce (-1) - 4 years ago - Reply 0


This JQuery is useless. When I compile form inputs and those which have the [*] symbol remain empty I don't see the "please enter password" or "please enter your height" etc. messages...Fix it!

valentinacorvasce (-1) - 4 years ago - Reply 0


This JQuery doesn't work good. When I compile form inputs and those which have the [*] symbol remain empty I don't see the "please enter password" or "please enter your height" etc. messages...Fix it!

valentinacorvasce (-1) - 4 years ago - Reply 0


This JQuery doesnt work!

valentinacorvasce (-1) - 4 years ago - Reply 0


This JQuery script doesnt work!

valentinacorvasce (-1) - 4 years ago - Reply 0


This JQuery script doesnt work!

valentinacorvasce (-1) - 4 years ago - Reply 0