Topic: Checkbox does not looks like in mdb site
MY PD free asked 6 years ago
I have just copy paste your code in my html partial view but checkbox is coming normal not as shown in your site.
<div class="form-row">
<div class="col-md-12 form-inline">
<div class="form-check">
@Html.CheckBoxFor(model => model.IsEmployee, new { @class = "form-check-input", @checked = "checked", @id = "chkIsEmployee" })
<label class="form-check-label" for="chkIsEmployee">Is Employee</label>
</div>
<div class="form-check">
@Html.CheckBoxFor(model => model.IsActive, new { @class = "form-check-input", @checked = "checked", @id = "chkIsActive" })
<label class="form-check-label" for="chkIsActive">Is Active</label>
</div>
<div class="form-check">
@Html.CheckBoxFor(model => model.IsAdmin, new { @class = "form-check-input", @checked = "checked", @id = "chkIsAdmin" })
<label class="form-check-label" for="chkIsAdmin">Is Admin</label>
</div>
</div>
</div>
Marta Wierzbicka staff answered 6 years ago
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- ForumUser: Free
- Premium support: No
- Technology: General Bootstrap questions
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No