title: How to copy textbox value into another textbox in MVC3 razor?
body: <p>i want to copy city1 textbox value to city2 textbox using javascript.</p>
  
  <h2>My javascript code--</h2>
  
  <pre><code>&lt;script type='text/javascript'&gt;
  $(function() {
  $("#chkCopy").change(function() {
      $("#city1").val("");
      if (this.checked) {
          $("#city2").val($("#city1").val())
      }
  
  });
  
  });​ 
  &lt;/script&gt;
  </code></pre>
  
  <h2>my view-</h2>
  
  <pre><code>@Html.TextBox("city1", "abc")
  @Html.TextBox("city2")
  @Html.CheckBox("check", new { id = "chkCopy" })
  </code></pre>
  
  <p>This is just a demo i need to implement this one in my project.Plzz help me.</p>