philchanet
3/3/2017 - 10:59 AM

Add class if element overflow above certain value

Add class if element overflow above certain value

$.each($('td.epreuves .collapse-cell'), function(){
    var height = $(this)[0].scrollHeight;
    if (height <= 46) {
        $(this).addClass('no-after');
    }
});