How to set bootstrap checkbox in razor CheckBoxFor()

后端 未结 5 1782
萌比男神i
萌比男神i 2021-01-06 01:25

I want to use bootstrap styled checkbox in my asp .net mvc form, however I find it very difficult. After hours looking for solution, I couldn\'t find anything that works for

5条回答
  •  攒了一身酷
    2021-01-06 01:30

    I used awesome-bootstrap-checkbox, and create checkbox without text like this:

    @Html.CheckBoxFor(m => m.PropertyName)

提交回复
热议问题