So, I had a problem implementing the materializecss checkbox using @ Html.CheckBoxFor. If I enter exactly:
<input type="checkbox" id="test5" />
<label for="test5">Red</label>
it works. But if I try this:
@Html.LabelFor(m => m.RememberMe, new { @class = "login-label" })
@Html.CheckBoxFor(m => m.RememberMe, new { @type = "checkbox" })
the flag disappears from the page to the left (the flag style is set to -99999 on the left).
Is there any other way that I can implement CheckBoxFor to make materialization work together?
Daath source
share