Try using detach Something like the following:
HTML
<div id="content" > <div class="test" style="height:100px;"> </div> <div class="test" style="height:100px;"> </div> <div class="test" style="height:100px;"> </div> <div class="test" style="height:100px;"> </div> <div class="test" style="height:100px;"> </div>
jQuery
var el = $('.test').detach(); el.each(function(index){ var height = $(this).attr('style').substring($(this).attr('style').indexOf('height:')+7,$(this).attr('style').indexOf('px')); $(this).attr('style','height:'+height*Math.random()+'px'); }); $('#content').append(el);
I was not able to manipulate height on individual elements. I found one way to do this, although if you have a height in the style attribute, you can pull the information out and manipulate it.
Here is an example, I hope it will be useful to you.
http://jsfiddle.net/4Sb8T/
source share