Reputation: 2420
I want to set the visibility of a checkbox to false without using style in mvc3.
@Html.CheckBoxFor(model => Model.Eng, new { @id = "chkEnergy1", @value = "true", @class = "chkEnergy",@visible=false }).I have given like this but its not working
Upvotes: 1
Views: 450
Reputation: 194
@Html.CheckBoxFor(model => Model.Eng, new { @id = "chkEnergy1", @value = "true", @class = "chkEnergy",@style = "display:none;" }).
Upvotes: 1