I'm trying to put a button
by append
taken via ajax. After being placed in html
, button
stops working, (everything works normally after refreshing the page, because it 'catches' the database data), I already researched in several places, but I did not find, Someone can help, please?
$('.clearfix button').on("click", function() {
// e é pegado pelo ajax 'success' em formato json
$('.shopping-cart-items').append(resultado['dado']);
});
(sorry for the format of my post, because I do not know how to use this site right yet)