Hey there! I recently created a simulated "Load More" feature for certain elements within divs. However, I've encountered an issue where clicking on the Load More button causes all elements in both my first and second containers to load simultaneously.
Below is the snippet of code I'm working with and you can also view it on jsFiddle:
$(".tohide").hide();
$(".tohide").slice(0, 3).show();
$(".more-comments").click(function(){
var showing = $(".tohide:visible").length;
$(".tohide").slice(showing - 1, showing + 999).show();
});