Answer by Nasser for jQuery click event not firing for anchor when contained within slickgrid cell

$('PARENT_ELEMENT').on('click','a[rel=XYZ]',function (e) {
    $(this).replaceWith('some html');
});

Just make sure that 'PARENT_ELEMENT' exist when you bind your event. Safest way is to use 'body' or document as 'PARENT_ELEMENT'.

Leave a Reply

Your email address will not be published. Required fields are marked *