title: Ways to change id attribute in html
body: <p>I'm building a website and I have an unsorted list with some list elements. When I click on some of these list items I want my <code>&lt;body&gt;</code>’s id to change from <code>id="index"</code> to <code>id="collection"</code>.</p>
  
  <p>What's the most efficient way to do that?</p>
  
  <ol>
  <li>Should I use JavaScript?</li>
  <li>Should I put all the body code in a <code>{% block %}</code> and override it when I click on the special list items?</li>
  <li>An other way?</li>
  </ol>