Could not get the display property. Invalid argument
<p>i write a jquery code and when i test page in IE 7 i found this Error</p>

<p>Could not get the display property. Invalid argument.</p>

<p>my code:</p>

<pre><code>                var $insert = $(item).css({ height: 0, display:'' }).prependTo($list);
                $insert.animate({ height: 35 }, 600).animate({ display: '' }, 600);

                if ($list.children().length &gt; 8) {
                    $list.find('&gt; li:last').animate({ filter: alpha(opacity = 50) }, 600).remove();
                }
</code></pre>
