jQuery(document).ready(function($) {
var $this = $('.part-items');
//if ($this.find('div').length > 2) {
//}
// If more than 2 Education part-items, hide the remaining
$('.part-items').each(function (){
var next = jQuery(this).next();
$(this).append('<div><a href="javascript:;" class="showMore"></a></div>');
//$(this).append('<div class="more-items"></div>');
$(this).parent().find('.part-item').slice(0,3).addClass('shown');
$(this).find('.part-item').not('.shown').appendTo('.more-items');
$(this).find('.showMore').on('click',function(){
$('.part-item').not('.shown').toggle(300);
$(this).toggleClass('showLess');
});
});
});
Сообщение jQuery(document).ready(function($) {
21 июня 2022Рядом в ленте
Vэто сообщение
V