title: Adding event listeners to current and future elements with a particular class
body: <p>With JQuery, is it possible to add an event listener to any element that currently, <strong>or will in the future</strong>, have a particular class?</p>
  
  <p>I'm working on a project that makes heavy use of contentEditable, so the DOM is changing, and elements can have classes added and removed as a result of user input.</p>
  
  <p>I would like to be able to say "elements of class X should do Y when clicked", but if I understand correctly, $(".X").click(Y) will only add the event listener to elements that currently have class X.</p>
  
  <p>Furthermore, if an element is no-longer part of class X, then it will still have the click event listener.</p>
  
  <p>How can I do this?</p>