рони,
я нашел почему он считает 0 размер, но теперь ковыряюсь с тем, чтобы он находил все размеры, а не только первого попавшегося. Там есть и часть кода, который вы помогли и составили мне ранее
Вот скрипт:
$(document).on('click','#help__how-1w',function(e){
$(this).parents().find('.help-modal').show();
$(this).parents().find('.help__man-window-create').show();
$(this).parents().find('.help__man-window-inner').show();
//тут ищу высоту каждого элемента .man__text
var elScc = $('div').parents().find('.help__man-inner');
elScc.each(function( index ) {
var eb = elScc.find('.man__text');
console.log($(eb).outerHeight());
});
//это конец и начало программы для переключения блоков .help__man-inner.
$(function() {
$(document).on('click','.help__next',function(e){
var index = $('.help__next').index(this);
$('.help__man__show-wrap').show();
$('.man__show__step-wrap').eq(index).children().addClass('animated-arrows');
$('.man__show__step-wrap').hide().eq(index++).show();
$('.help__man-inner').hide().eq(index).show();
})
$(document).on('click','.help__back',function(e){
var index = $('.help__back').index(this) ;
$('.help__man__show-wrap').toggle(index > 0);
$('.man__show__step-wrap').eq(index).children().removeClass('animated-arrows');
$('.help__man-inner').hide().eq(index--).show();
$('.man__show__step-wrap').hide().eq(index).show();
});
})
})