"Search form with toggles"
Bootstrap 2.3.2 Snippet by msurguy

<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>

Questions / Comments:

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

Asher Cohen (0) - 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 (0) - 5 years ago - Reply 0

Related: See More