title: Ajax to ActionResult, getting Model
body: <p>I have an action (Index) that return a View with a concrete model.</p>
  
  <p>Inside that view (Is a calendar) I have two buttons to change months.</p>
  
  <p>When I click one of those I call back Index action to that will return the same view with a modified model.</p>
  
  <pre><code>$("#right").live("click", function () {
      $.post($(this).attr("href"), function (response) {
          $("#wrapper").replaceWith($(response).filter("div#wrapper"));
      });
      return false;
  });
  </code></pre>
  
  <p>So, I click #right and it call /Home/Index and Index return something like:</p>
  
  <pre><code>return View(new DateViewModel(dt, _bDays.GetDaysFromMonth(dt)));
  </code></pre>
  
  <p>So as you see, I replace div#wrapper with the new one. Perfect but...</p>
  
  <p>Is there a way to get the model of the response? I mean, that action return a view with a model and apart from getting the concrete div I want the model.</p>
  
  <p>Any idea?</p>