Bootstrap form control states
home
Run
screen_rotation
fullscreen
cloud_download
<html> <head> <title>Bootstrap Grid</title> <!-- Latest compiled and minified CSS --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css"> <!-- Optional theme --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap-theme.min.css"> <script type="text/javascript" src="http://code.jquery.com/jquery-2.1.4.min.js"> </script> <!-- Latest compiled and minified JavaScript --> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js"></script> </head> <body> <div class="container"> <div class="row" style="margin:50px;"> <div class="col-sm-12"> <form role="form"> <div class="form-group has-error has-feedback" > <label class="control-label" for="fname">First Name(Input with error)</label> <input type="text" name= "First Name" class="form-control" id="fname" placeholder="Enter First Name"> <span class="glyphicon glyphicon-remove form-control-feedback"></span> </div> <div class="form-group has-warning has-feedback"> <label class="control-label" for="email">Email (Input with warning)</label> <input type="text" name="email" class="form-control" id="email" placeholder="Enter email"> <span class="glyphicon glyphicon-warning-sign form-control-feedback"></span> </div> <div class="form-group has-success has-feedback"> <label class="control-label" for="Phone">Phone(Input with success)</label> <input type="text" name="phone" class="form-control" id="phone" placeholder="Enter Phone No"> <span class="glyphicon glyphicon-ok form-control-feedback"></span> </div> <div class="form-group"> <label class="control-label" for="Password">Password(Readonly)</label> <input type="password" name="password" class="form-control" readonly id="password" placeholder="Enter Password" value="12344"> </div> <div class="form-group"> <label class="control-label" for="Password">Confirm Password(Input Focus)</label> <input type="password" name="confirmpassword" class="form-control" id="confirmpassword" placeholder="Enter Password"> </div> <button type="submit" class="btn btn-primary disabled">Submit (With Disabled)</button> </form> </div> </div> </div> </body> </html>
<html> <head> <title>Bootstrap Grid</title> <!-- Latest compiled and minified CSS --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css"> <!-- Optional theme --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap-theme.min.css"> <script type="text/javascript" src="http://code.jquery.com/jquery-2.1.4.min.js"> </script> <!-- Latest compiled and minified JavaScript --> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js"></script> </head> <body> <div class="container"> <div class="row" style="margin:50px;"> <div class="col-sm-12"> <form role="form"> <div class="form-group has-error has-feedback" > <label class="control-label" for="fname">First Name(Input with error)</label> <input type="text" name= "First Name" class="form-control" id="fname" placeholder="Enter First Name"> <span class="glyphicon glyphicon-remove form-control-feedback"></span> </div> <div class="form-group has-warning has-feedback"> <label class="control-label" for="email">Email (Input with warning)</label> <input type="text" name="email" class="form-control" id="email" placeholder="Enter email"> <span class="glyphicon glyphicon-warning-sign form-control-feedback"></span> </div> <div class="form-group has-success has-feedback"> <label class="control-label" for="Phone">Phone(Input with success)</label> <input type="text" name="phone" class="form-control" id="phone" placeholder="Enter Phone No"> <span class="glyphicon glyphicon-ok form-control-feedback"></span> </div> <div class="form-group"> <label class="control-label" for="Password">Password(Readonly)</label> <input type="password" name="password" class="form-control" readonly id="password" placeholder="Enter Password" value="12344"> </div> <div class="form-group"> <label class="control-label" for="Password">Confirm Password(Input Focus)</label> <input type="password" name="confirmpassword" class="form-control" id="confirmpassword" placeholder="Enter Password"> </div> <button type="submit" class="btn btn-primary disabled">Submit (With Disabled)</button> </form> </div> </div> </div> </body> </html>
Copyrights@tutorialsplane.com