title: How to Hide Ajax.ActionLink after call is made
body: <pre><code>&lt;%: Ajax.ActionLink("View Code Status", "GetCodes", "BvIndex",
          new { id = o.Id },
          new AjaxOptions { UpdateTargetId = count.ToString() },
          new { @id = "h" + count.ToString()}) %&gt;
  </code></pre>
  
  <p>I want to hide the link after the ajax call is made. I tried doing it  onsuccess and oncomplete methods but i was not able to do it. 
  Any solution for this.</p>
  
  <p>This is the way which i tried onsuccess, i was able to hide it but i am getting an error.</p>
  
  <pre><code>&lt;%: Ajax.ActionLink("View Code Status", "GetCodes", "BvIndex",
          new { id = o.Id },
          new AjaxOptions {
                      OnSuccess = "functionhide("+count+")",
                      UpdateTargetId = count.ToString()
          },
          new { @id = "h" + count.ToString()})%&gt;
  </code></pre>
  
  <p>onsuccess function</p>
  
  <pre><code>function functionhide(count) {
              $("#h" + (count)).hide();
          };
  </code></pre>
  
  <p>This is working fine but,I am getting an error saying,</p>
  
  <p><strong>Microsoft JScript runtime error: 'b' is null or not an object</strong></p>