Add focus class to form control
Description
The following code shows how to add focus class to form control.
Example
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css"
href="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css">
<style type='text/css'>
.form-control:focus {<!--from w w w .j a v a 2 s. c o m-->
border-color: #1ABC9C;
box-shadow: none;
}
</style>
</head>
<body>
<form class="form-inline" role="form">
<div class="input-group">
<input class="form-control" type="text"> <span
class="input-group-btn">
<button class="btn btn-default" type="button">Search</button>
</span>
</div>
</form>
<script
src="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
</body>
</html>