title: Trigger button click in javascript?
body: <p>Here is my <code>button</code> code:</p>
  
  <pre><code>&lt;button class="popup-trigger" data-modal="modal-1"&gt;&lt;/button&gt;
  </code></pre>
  
  <p>How can i trigger the button click or even trigger the class <code>popup-trigger</code> with the data-modal <code>modal-1</code>?</p>
  
  <p>would like to know in pure javascript, if you cant do it, then jquery. thanks</p>