"Simple & Easy Login Form With Validation"
Bootstrap 3.3.0 Snippet by Tushar-Rawat

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/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<nav class="navbar navbar-inverse navbar-fixed-top" id="my-navbar">
<div class="container-fluid">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">WebSiteName</a>
</div>
<div class="collapse navbar-collapse" id="navbar-collapse">
<ul class="nav navbar-nav">
<li class="active"><a href="#">Home</a></li>
<li><a href="#">Gallery</a></li>
<li><a href="#">FAQ</a></li>
<li><a href="#">Feedback</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li><a href="Signuppage"><span class="glyphicon glyphicon-user"></span> Sign Up</a></li>
<li><a href="Loginpage"><span class="glyphicon glyphicon-log-in"></span> Login</a></li>
</ul>
</div>
</div>
</div>
</nav>
<div class="jumbotron" >
<div class="container"><br>
<h1 class="form-group"><b>Login form</b></h1>
<form action="DoLogin" method="post" >
<div class="form-group">
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
body
{
padding-top:50px;
}
.jumbotron
{
height: 100%;
background-color:tomato !important;
}
.form-group
{
padding-left: 60px;
width:90%;
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
function emailFunction()
{
var x = document.getElementById("Email").pattern;
document.getElementById("demo").innerHTML = x;
}
function passFunction()
{
var x = document.getElementById("passInput");
if (x.type == "password")
{
x.type = "text";
}
else
{
x.type = "password";
}
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: