asp.net mvc - Hide a Checkbox in mvc4 without using style -


i want set visibility of checkbox false without using style in mvc3.

@html.checkboxfor(model => model.eng, new { @id = "chkenergy1", @value = "true", @class = "chkenergy",@visible=false }).i have given not working 

@html.checkboxfor(model => model.eng, new { @id = "chkenergy1", @value = "true", @class = "chkenergy",@style = "display:none;" }). 

Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -