title: Listen for text changes in all elements with specific class name
body: <p>I'm trying to run a function the moment text inside any div with a specific class name changes.</p>
  <p>See my code below. Here I am trying to listen for text changes in all elements with the class name of &quot;my-item&quot;. For some reason this isn't working and I can't figure out what I'm doing wrong.</p>
  <pre><code>var TargetItem = document.querySelectorAll(&quot;.my-item&quot;);
  TargetItem.forEach((TargetItemEach) =&gt; {
      var TargetText = TargetItemEach.innerHTML;
      TargetText.addEventListener(&quot;change&quot;, RunMyScript);
  }); 
          
  function RunMyScript() {
     alert('Hello');
  }
  </code></pre>