1
I’m trying to put a button
for append
taken via ajax. After being placed in html
, the button
it stops working, (everything works normally after updating the page, because it 'picks up' the data from the database), I have searched in several places, but I did not find, Someone can help me, 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 as I don’t know how to use this site right yet)
You can post your code to further analyze your problem ?
– RickPariz
I recommend reading of Event is not tied to the element and What is the difference between $(Document). ready() and window.onload? to understand how the basic DOM loading process actually works.
– Guilherme Nascimento