Jquery click event not firing on the element created dynamically using jquery

Use even delegation instead

Event delegation allows us to attach a single event listener, to a
parent element, that will fire for all children matching a selector,
whether those children exist now or are added in the future.

More info

$(document).on('click', '.remove', function () {.....

Leave a Comment