2
I have two buttons that when clicked make the call of a .on('click',function())
but before that an AJAX request is made and after that request they no longer work. Before I did the function to perform the request it worked perfectly. That’s the request:
$.ajax({
url: "teste.php",
type: 'GET',
success: function(html){
var headline = $(html).find('#teste');
$('#teste').html(headline);
}
});
and the button with the .on('click')
that’s the one:
$('.remove-item').on('click',function(){alert('teste')});