Bootstrap Tutorial - Style the form select box with Bootstrap








Form Select Box

Use the default option, or add multiple to show multiple options at once.

<!DOCTYPE HTML>
<html> 
<head> 
<link href="http://java2s.com/style/bootstrap.min.css" rel="stylesheet">
</head><!--from www  .  j a v  a2 s  . c om-->
<body style='margin:20px;'>

<form class="form-horizontal">
<select class="form-control">
  <option>1</option>
  <option>2</option>
  <option>3</option>
  <option>4</option>
  <option>5</option>
</select>


<br/><br/><br/><br/><br/><br/>

<select multiple class="form-control">
  <option>1</option>
  <option>2</option>
  <option>3</option>
  <option>4</option>
  <option>5</option>
</select>
</form>
        
</body>
</html>

Click to view the demo