I have a page that sends an asyncronous Jquery request to another page, and i receive a button in response. Button has class "delete_button".
<BUTTON class="delete_button">Delete</BUTTON>
The problem is, this "new" button is not bound (and doesn't trigger) any Jquery event.
I've tried to use the .on() function (And the old deprecated .live()) but i couldn't bind an event to that button. The Jquery even is as follows.
$(".delete_button").on("click", function(){
//Code here...
});
I've checked using a debugger that the button actually has the correct class, and the Javascript signals no error. Nothing strange in the console. Simply, the event does not occur.