Hide/Show div with form

Hide/Show div with form


Hello,
I am having problems showing and hiding the content of some of my div
if form tag is inside the div. Why?
Works
<div class="portlet_edit">

Edit mode


</div>
This doesn't
<div class="portlet_edit">

Edit mode


<form action="/tapestry-examples/ui/portlets/jquerybasic.form"
id="form" method="post" name="form">
<div class="t-invisible"><input name="t:formdata" type="hidden"
value="H4sIAAAAAAAAAFvzloEVAN3OqfcEAAAA"></div>
</form>
</div>
Regards,
Borut