title: Adding title / `data` attributes to a button
body: <p>I have a button on page. How can I add a title and <code>data</code> attributes to this button or div using js / jquery?</p>
  
  <pre><code>&lt;button type="button" class="btn btn-secondary"&gt;TEST&lt;/button&gt;
  </code></pre>
  
  <p>expected output:</p>
  
  <pre><code>&lt;button type="button" class="btn btn-secondary" data-toggle="category" data-placement="middle" title="Home"&gt;TEST&lt;/button&gt;
  </code></pre>