title: Attaching a click event to multiple elements at once?
body: <p>Here is my code in jQuery:</p>
  
  <pre><code>$('.paragraph, .section, .heading').on('input', function (e) {
     localStorage.setItem($(this).attr('id'), $(this).text());
  });
  </code></pre>
  
  <p>Is there any JavaScript equivalent where I could attach all events at once?</p>