jQuery UI Hide destroys the JS in the target element

jQuery UI Hide destroys the JS in the target element

Hi everybody. My first message here ::- ). I would have wished it under better circumstances. However, I'm having a quite annoying problem. I'm using jQuery UI hide effect and for some reason it messes with the DOM and/or and completely messes up some of my controls.

$('#dvucCustomization').hide('fold', {}, 500);

Is that the correct way to call the hide effect on a DIV element?

I also tried simply:

$('#dvucCustomization').hide('fold');

and the same result: the JSs I have in the hidden/shown element are not working any more.