I am doing an ajax request when an anchor tag is clicked with an ID set to href. Btw, this anchor tag is dynamically created.
Scope change inside the function.
Cache the link object and refer to it inside of the ajax request.