title: Change id attribute of an html.editorfor helper in MVC4 with Razor
body: <p>I have looked through some various answers related to this but all were for mvc3 or not for Razor.</p>
  
  <p>I have a single page that has multiple forms, in partial views, that are for editing a different models. However, most of those models have a 'name' field. I am looking to be able to specify an editorfor with a specific id as such:</p>
  
  <pre><code>    &lt;div class="editor-label"&gt;
          @Html.LabelFor(model =&gt; model.Name)
      &lt;/div&gt;
      &lt;div class="editor-field"&gt;
          @Html.EditorFor(model =&gt; model.Name,  new {id = "PersonName"})
          @Html.ValidationMessageFor(model =&gt; model.Name)
      &lt;/div&gt;
  </code></pre>
  
  <p>I have tried various other things but have not found a satisfactory way to handle this. The two choices I seem to have are: </p>
  
  <p>1) Create a form manually using the normal html helpers and construct the model in the controller</p>
  
  <p>2) Rename all the fields in the model to fit the format </p>
  
  <p>Neither of these are exciting to me so I am hoping for an alternative but am afraid that the id is what is used when binding the form to a model.  </p>