title: how to set value of @Html.EditorFor using jquery in in asp.net mvc
body: <p>I want to set the value of my input text using jquery. I have tried by doing this :</p>
  
  <pre><code>    &lt;div class="editor-label"&gt;
          @Html.LabelFor(model =&gt; model.ID )
      &lt;/div&gt;
      &lt;div class="editor-field"&gt;
          @Html.EditorFor(model =&gt; model.ID)
          @Html.ValidationMessageFor(model =&gt; model.ID)
      &lt;/div&gt;
  </code></pre>
  
  <p>and jquery syntax :</p>
  
  <pre><code>    $("#ID").val(data.ID);
  </code></pre>
  
  <p>But it is not working. I have tried the same jquery code with this :</p>
  
  <pre><code>&lt;input type="text" id="ID" /&gt;
  </code></pre>
  
  <p>This approach is working , but I don't know why @Html.EditorFor is not working with jquery .Thanks in advance</p>