title: How to tell Ajax.ActionLink OnSuccess callback which element initiated the ajax
body: <p>I want my razor view to look something like this</p>
  
  <pre><code>@Ajax.ActionLink("A", "Buy", new AjaxOptions() { HttpMethod = "Post", OnSuccess = "updateLetter" }, new { id = "letter-A" })
  @Ajax.ActionLink("B", "Buy", new AjaxOptions() { HttpMethod = "Post", OnSuccess = "updateLetter" }, new { id = "letter-B" })
  @Ajax.ActionLink("C", "Buy", new AjaxOptions() { HttpMethod = "Post", OnSuccess = "updateLetter" }, new { id = "letter-C" })
  </code></pre>
  
  <p>and my javascript to look something like this</p>
  
  <pre><code>function updateLetter(letter)
  {
      $("#letter-" + letter).toggleClass('selected');
  }
  </code></pre>
  
  <p>the idea being that if I click the A link, it'll do the ajax and toggle the class on that element. I'm not sure exactly how to hook it up though. What am I missing?</p>