How come $(this) is undefined after ajax call
- by JohnnyQ
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.
<a href="983" class="commentDeleteLink">delete</a>
When the anchor tag is clicked the following code is executed:
$('.commentDeleteLink').live('click', function(event) {
event.preventDefault();
…