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