How do I turn a button group in Bootstrap into a radio-style input to my form?

后端 未结 5 2025
一向
一向 2021-02-04 11:31

I have the following HTML that creates a radio button group using Bootstrap.

5条回答
  •  情书的邮戳
    2021-02-04 11:57

    You can use my plugin bootstrap-form-buttonset to skin radios or checkboxes to bootstrap button groups. It is compatible to Bootstrap 2 and Bootstrap 3.

    Just write plain old radio inputs, wrap them together and call $('.my-wrapper').bsFormButtonset('attach'). Thats it.

提交回复
热议问题