How do we specify the class of Html.CheckBox ?
I am trying something like this, but this doesn't work.
@Html.CheckBox("chk_", abc.IsChecked, new { @class="checkbox" })
THanks !!
How do we specify the class of Html.CheckBox ?
I am trying something like this, but this doesn't work.
@Html.CheckBox("chk_", abc.IsChecked, new { @class="checkbox" })
THanks !!
When specifying class, compiler puts a check to confirm that the bool value is not nullable, i fixed the datatype from null-able bool to bool, and it ran fine.
@Html.CheckBox("chk_", abc.IsChecked, new { @class="checkbox" })