i want to hide the show-more button if both the div from products.html and the loaded elements from products.html have the same number of divs
$(document).ready(function(){
var eleng_count = $('body div.pro-pop').length;
var ileng_count = $('#pro-pop > div').length;
if (eleng_count == ileng_count) {
$('.show-more').hide();
};
});
<div>
<script>
$(function(){
$('#pro-pop').load('products.html .pro-pop:lt(6)' ,function(){
$('div .pro-pop').addClass('product-full');
});
});
</script>
</div>
<div class="show-more">
<p>Show more</p>
<i class="fas fa-chevron-down" style="margin: 0 auto 3px 23.5vw; display: block; font-size: 4vw;"></i>
</div>