I have the next code:
$(document).ready(function(){
$('#dl-cat').mouseenter(function(){
$.ajax({
type: "POST",
url: "../control/Controlador.php",
data: {lang: $('html').attr('lang'), cat: $(this).text(), prov: "none"},
success: function(resp) {
$(".og-grid").html(resp);
}
});
});
$(".og-grid li").on("mouseenter", function(){
console.log("it exists");
});
});
Where the "og-grid" class is an "ul" tag and after the ajax response I put some html code like "li" tags, but when I program an event like "mouseenter" to the new added code It does not show me anything, as If It does not exist