title: Jquery .val() method is not working when change text box ,
body: <p>I have been developing MVC3 application.this is my edit view, text box that i want to edit</p>
  
  <pre><code>@Html.TextBoxFor(model =&gt; model.NoOfDays, new { @class="text_box_size",@size = "5" })
  </code></pre>
  
  <p>I use Jquery to change other text box according to value of above text box</p>
  
  <pre><code>$(function () {
              $("input#NoOfDays").change(function () {
                  var value =$("#NoOfDays").val();
  
                  validation();
  
              });
          });
  </code></pre>
  
  <p>after change text box value I call validation function that I have pre written.but its not working.Always return of the $("#NoOfDays").val(); function is old value.not new value.Please anyone can  help me</p>