title: Getting model value in jquery
body: <p>My view contains a model property and a submit button,   </p>
  
  <pre><code>@Html.LabelFor(m =&gt; m.Password)
  @Html.PasswordFor(m =&gt; m.Password, new { id = "txtLgnPasswordReset", @class = "form-control avoid-copy-paste" })
  &lt;div class="row vert-offset-top-2 vert-offset-bottom-2"&gt;
        &lt;div class="col-md-2"&gt;
            &lt;button id="submitSave" type="submit" class="btn btnColor ladda-button"&gt;Save&lt;/button&gt;
        &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>On click of Login button I need the password value in jquery, I've tried this which doesn't help..</p>
  
  <pre><code>$(document).ready(function() {
      var password = $("#txtLgnPasswordReset").html();
      $("#submitSave").on("click", function() {
          alert(password);
          $.ajax({
  
          });
      });
  });
  </code></pre>
  
  <p>Thanks in advance...</p>