I have a dynamically loaded page with divs of class product. Jquery doesn't see this class with the code below. When I click on product divs it doesn't do anything. However clicl on nav-element works fine. Any way to make it work with it?
$(document).ready(function(){
$(".nav-element").click(function(){
var id = $(this).attr('id');
alert(id);
$(".nav-element").css("background", "#fff");
$("#"+id).css("background", "#A4CFBE");
$(".content-white").load(id+".html");
});
$(".content-white").load("nav-element1.html");
$(".product").click(function(){
alert("poop");
})
});