Salesforce reRender dose not work with rendered attribute

Salesforce reRender will not work, if we’re going to hide reRender target with rendered attribute of itself, as the following sample code.

In my opinion, reRender will reset the target DOM Node but not replace it after AJAX request completed,that means we can reset it’s childNodes even it’s html attributes, but cannot remove it.So there have two solutions in this case(maybe more), making target Node to be childNode or using variable in style attribute.

Solution 1 : Making target Node to be childNode

Solution 2 : Using variable in style attribute