jeudi 24 septembre 2015

How can I get my checkbox to a readonly and disabled state and checked if the condition is true

@Html.CheckBox("Food", true, new { Model.food, @disabled = "disabled"});

This is what I have so far, but when I click save, my check goes away. Is there a way to keep it checked and diabled?




Aucun commentaire:

Enregistrer un commentaire