Javascript: Best approach for displaying one element of a list
<p>What is the better approach?</p>

<p>1.) adding multiple DOM elements to a parent node and setting all of them but one to "hidden" (disply='none'). On demand set the currently visible element to "hidden" and another one to "visible".</p>

<p>2.) Just add one DOM element and on demand change its attributes and content.</p>
