title: jQuery checkbox onChange
body: <p>I have a checkbox with an id of activelist</p>
  
  <p>I tried the following but did not seem to work (I have below in) :</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$(document).ready(function () {
    $('#activelist :checkbox').change(function () {
      alert('changed');
    });
  });</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;input type="checkbox" id='inactivelist' value="inactivelist" /&gt;</code></pre>
  </div>
  </div>
  </p>