Home
Tutorials
Microsoft Technologies Tutorials
Java Programming Tutorials
Web Designing Tutorials
Script Programming Tutorials
Database Programming Tutorials
Mobile Technologies Tutorials
Other Programming Tutorials
Examples
Articles
Tools
News
Bootstrap Form Control States Example
Keywords : form, bootstrap, inputs, bootstrap form inputs, bootstrap input controls, bootstrap form input examples, bootstrap form control states, bootstrap readonly controls, bootstrap disabled form controls
Example
<!DOCTYPE html> <html lang="en"> <head> <title>Bootstrap Form Control States Example</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"> <script src="https://code.jquery.com/jquery-3.4.1.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script> <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script> <style> .bcontent { margin-top: 10px; } </style> </head> <body> <div class="container-fluid bcontent"> <h2>Bootstrap Form Control States</h2> <hr /> <form> <div class="form-group"> <label for="username">Username (touch to focus)</label> <input type="text" class="form-control" id="username" placeholder="Enter username"> </div> <div class="form-group"> <label for="usernameDisabled">Username (disabled)</label> <input type="text" class="form-control" id="usernameDisabled" placeholder="Enter username" disabled> </div> <div class="form-group"> <label for="usernameReadonly">Username (readonly)</label> <input type="text" class="form-control" id="usernameReadonly" placeholder="Enter username" readonly> </div> </form> </div> </body> </html>
Click Here to See Result
Result
Previous
Next