title: Min and Max values for EditorFor
body: <p>I've been trying this code to set minimum and maximum on my <code>EditorFor</code>:</p>
  
  <pre><code>&lt;label id="LbStartYear" style="width: 200px"&gt;From Date: @Html.EditorFor(model =&gt; model.SelectedYearBegin, new { htmlAttributes = new { @min = "0", @max = "20" } })&lt;/label&gt;
  </code></pre>
  
  <p>But no success. Minimum and Maximum are never set. I tried removing the quotation from <code>0</code> and <code>20</code>, also tried with and without the <code>@</code>.</p>
  
  <p>Any ideas?</p>