I need to disable an input dynamically when its value is equal to "*". How can I achieve this using the MVC Razor?
@Html.TextBoxFor(m => m.Digits[0], new { @class = "form-control input-lg label_16", @placeholder =
"1st", (Model.Digits[0] == "*" ? "disabled" : "") })
The above code doesn't compile Is this possible?