Twitter Bootstrap Button Group Control Radio Buttons/Checkboxes

后端 未结 5 777
攒了一身酷
攒了一身酷 2021-01-30 16:15

I am trying to use the Twitter Bootstrap button group as an actual set of form input controls. By default, these button groups can be made to function like a radio button or che

5条回答
  •  执笔经年
    2021-01-30 16:59

    Bootstrap 2

    Try this fiddle

    HTML:

    Script:

    $(".btn-group button").click(function () {
        $("#buttonvalue").val($(this).text());
    });
    

    then get buttonvalue server side

提交回复
热议问题