jQuery Parent class need to add Padding on top

if (window.matchMedia('(max-width: 767px)').matches) {

    var proh = [];

    var key = 0;

    $('td.iepa-tdwc').each(function () {

        proh.push($('.iepa-tdwc-' + key).outerHeight());


        $('.iepa-trwc-' + key).css('padding-top', $('.iepa-tdwc-' + key).outerHeight());

        key = key + 1;

    });

    var keyaes = 0;

    $('td.iepa-tdwc-aes').each(function () {

        proh.push($('.iepa-tdwc-aes-' + keyaes).outerHeight());


        $('.iepa-trwc-aes-' + keyaes).css('padding-top', $('.iepa-tdwc-aes-' + keyaes).outerHeight());

        keyaes = keyaes + 1;

    });


} else {



}


Comments