"Search form with toggles"
Bootstrap 2.3.2 Snippet by msurguy

<link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="container"> <div class="row"> <div class="span2"> <div class="btn-group pull-right" data-toggle="buttons-radio"> <button class="btn active">All</button> <button class="btn">Starred</button> </div> </div> <div class="span4"> <form class="form-search"> <div class="input-append"> <input type="text" class="span2"> <button type="submit" class="btn">Search</button> </div> </form> </div> </div> </div>

Related: See More


Questions / Comments:

What's the best way to translate the buttons into actual form values?

Asher Cohen () - 5 years ago - Reply 0


Have a hidden field and update its value using jQuery according to which button was pressed.
See http://forum.jquery.com/top...

maxsurguy () - 5 years ago - Reply 0