title: JQuery / AJAX / ASP MVC 3 - Animate a PartialView OnSuccess
body: <p>I want to be able to do some fancy animation using the OnSuccess callback of the Ajax.ActionLink:</p>
  
  <pre><code>@foreach(var item in Model)
  {
      @Ajax.ActionLink(Html.Action("GetOpenEnquiriesNum", new { id = item.ACCOUNTNUM }).ToString(), "GetOpenEnquiries", new { id = item.ACCOUNTNUM }, new AjaxOptions()
                                              {
                                                  InsertionMode = InsertionMode.Replace,
                                                  UpdateTargetId = "daybook-result-" + item.ACCOUNTNUM + "",
                                                  OnSuccess = "LoadAjaxSuccess"
                                              })
  }
  </code></pre>
  
  <p>As you can see, my UpdateTargetId will be different depending on the item.ACCOUNTNUM of my model, so I can exactly do something like:</p>
  
  <pre><code>$("#daybook-result-123").slideDown("slow");
  </code></pre>
  
  <p>as the 123 part will be different for every item within my model. So is there anyway I can pass the caller as a parameter to the LoadAjaxSuccess function? Then do something like:</p>
  
  <pre><code>function LoadAjaxSuccess(mycaller)
  {
  $(mycaller).slideDown("slow");
  }
  </code></pre>
  
  <p>Any help would be appreciated, thanks.</p>