I want to collect three numbers and then identify the highest number. The numbers are the outer heights of div-elements. I tried to store the outer heights in an array but unfortunately I don't know how to do so. This is how I started:
$ var heights = [];
$('.elements').each(function(i){
$(this).outerHeight(trainingshoehen[i]);
});
But it does not work. How can I write these numbers into an array and in the second step how can I compare these numbers best?
Would be nice to get any tips! Thnak you.