jQuery: stretch elements’ heigth

I have an unsorted list of elements with children.
I wanted to make all the element stretch their height not counting on how much content is in there.
There are some solutions which might be done using css, but all of them make layout too complicated and too many layers should be created to get what I want.
Why not to user jQuery for this?

I have the following html code:

Let’s apply css to see how it looks like:

And it looks as following:

We are adding just some js code after the #container

and we got new look: