title: Set attribute without value
body: <p>How do I set a data attribute without adding a value in jQuery? I want this:</p>
  
  <pre><code>&lt;body data-body&gt;
  </code></pre>
  
  <p>I tried:</p>
  
  <pre><code>$('body').attr('data-body'); // this is a getter, not working
  $('body').attr('data-body', null); // not adding anything
  </code></pre>
  
  <p>Everything else seems to add the second arguments as a string. Is it possible to just set an attribute without value?</p>