I am working on product listing page more products are loaded with infinite scroll The problem is when the new page load, the jQuery on click event on the loaded page will not execute when user click on "add to cart". the script would have worked if it was loaded with jquery load(). but infinite scroll is using something else like I don't know.
$(document).ready(function() {
jQuery_1_6_1('#mycontent').infinitescroll({
navSelector: "#mynext:last",
nextSelector: "#mynext:last",
itemSelector: "#mycontent",
debug: false,
dataType: 'html',
maxPage: <?php echo $pages_load;?>,
path: function(index) {
return "pages/index" + index + ".html";
}
// appendCallback : false, // USE FOR PREPENDING
}, function(newElements, data, url) {
});
});