I have a listener like this:
$('.delete').click(function() {
...some stuff
});
Also, on the same page, another script dynamically add elements to the DOM in this way:
$('#list').append('<tr><td><a class="delete" href="#">delete</a></td></tr>');
My problem is that the listener doesn't "listen" to these dynamically created elements.
Can anyone shed some light please?