title: fill the textboxes with selecting dropdownlist in mvc
body: <p>I want to fill textboxes which take data from database. When I select any value using dropdownlist, I need to get ID from dropdownlist and I call a function which fill <code>@Html.EditorFor(model =&gt; model.taskName)</code>. The page musn't change. How is it possible?</p>
  
  <pre><code>&lt;div class="form-group"&gt;
        @Html.LabelFor(model =&gt; model.jobID, "jobID", new { @class = "control-label col-md-2" })
         &lt;div class="col-md-10"&gt;
        @Html.DropDownList("jobID", String.Empty)
        @Html.ValidationMessageFor(model =&gt; model.jobID)
  &lt;/div&gt;
  &lt;/div&gt;
       &lt;div&gt; @Html.Partial("../Location/taskname") &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>taskname.cshtml</p>
  
  <pre><code>@Html.AntiForgeryToken()
      &lt;div class="form-horizontal"&gt;
          @Html.ValidationSummary(true)
          &lt;div class="form-group"&gt;
              @Html.LabelFor(model =&gt; model.taskName, new { @class = "control-label col-md-2" })
              &lt;div class="col-md-10"&gt;
                  @Html.EditorFor(model =&gt; model.taskName)
                  @Html.ValidationMessageFor(model =&gt; model.taskName)
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  </code></pre>