Here’s my code:
$("#strong-against .pick .data .actions .btn-success").on("click", function () {
//Magic here.
});
I read that I should use .on() as that would dynamically attach events to items added even after the document finishes loading.
Yet, the event is not being fired after I load these items dynamically. How can I make it so that any items I add after the document load are listened to?
Try,
Follow the 2 steps to bind event handler for dynamic elements,
So if
#strong-againstexist on page load then you can,