title: How to get html5 attributes and values into mvc HiddenFor
body: <p>I have following hidden input:</p>
  
  <pre><code>&lt;input type="hidden" class="deleted" name="Deleted" data-id="@Model.Id" value="@Model.Deleted" /&gt;
  </code></pre>
  
  <p>I was wanting to convert this to the MVC helper HiddenFor.</p>
  
  <p>Got this far:</p>
  
  <pre><code>@Html.HiddenFor(x =&gt; x.Deleted, new { @class="deleted" })
  </code></pre>
  
  <p>So that covers the class. I also need the data-id attribute and value.</p>
  
  <p>Tried to add the data-id as:</p>
  
  <pre><code>@Html.HiddenFor(x =&gt; x.Deleted, new { @class="deleted", data-id="@Model.Id" })
  </code></pre>
  
  <p>Well the helper doesn't seem to like the hyphen in the data-id.</p>
  
  <p>So how to get it in there?</p>
  
  <p>Also how to get the <code>value="@Model.Deleted"</code> in there also?</p>