I have a set of boxes and I save each height like that:
$(function(){
$(".box").each(function(){
boxSize = $(this).height();
});
Then I call it like this:
button.click(function(){
$(".box").height(boxSize);
});
});
But it doesn’t, i would like boxSize to be specific for each box, anyone?
Thanks
this function always sets the last elements height to boxSize variable. You should array variable for save the all elements height value.