Jquery which object to use
<p>I have jquery code like this:</p>

<pre><code>$(".element").live('click', function(e) {
    $(".element").css("height",  $(this).parent().height() +"px") ;
});
</code></pre>

<p>What i want is:</p>

<p>Change the height of all ".element"s to the height of their parent (different for each one). The problem is, that the $(this) tag refers to the element that has been clicked on (dummy test function, will change later). I tried using  $(".element").parent().height(), but this seems not to be right either. How do i refer to correct actual element?</p>
