Take a look at our last example on this page if you want to know how this can be achieved. Is commonly used with javascript to hide and show elements without deleting and recreating them.