title: Hide Ajax.ActionLink after click
body: <p>I am trying to hide ActionLink after click using code below, unfortunately it do not works. Maybe someone could point me in right direction?</p>
  
  <pre><code>@foreach (var conversionModel in Model)
  {
      @Ajax.ActionLink("Delete file", "DeleteFile", "Converter", new { id = @conversionModel.ProcessId }, null,
                          new AjaxOptions
                          {
                              OnSuccess = "hideLabel"
                          })
  }
  
  &lt;script type="text/javascript"&gt;
  
      function hideLabel(){
          $(this).hide();
      }
  &lt;/script&gt;
  </code></pre>