I’m trying to remove a class, but it fails from some reason, can anyone share some ideas ?
This is the code:
$(document).ready(function() {
if ($('.space-fill').height() > 22) {
$('.space-fill').addClass('space-full');
}
else{
$('.space-fill').removeClass('space-full');
}
});
I make a wild guess and say that you have to iterate over all
.space-fillelements in order to read their height and apply the class: