I'd like to have a code that ran through all divs
with a certain class
and then saw which was the one that had height
and set their size all the same. Is there a way to do this?
I know how to get height
with: $(".img").height()
but it just fetches the first one that appeared.
UPDATE
With the response from @Artur the Templar, I was able to see height
of each, but now I'm not able to apply height
to all.
Here's the code I've made
var lista_imagens = $('.border_not');
lista_imagens.each(function (){
var last = "";
var height_img=$(this).height();
if(height_img > last){
last = height_img;
}
});