title: How to exclude element inside div from being affected by the div function?
body: <p>I want to exclude the <strong>#someButtonHere</strong> from being affected by <strong>#AllContents</strong> onclick function. I try this code, but it doesn't work. <br> Notes: #someButtonHere is of course inside the #AllContents div, but everything need to be affected by the function, except someButton itself.</p>
  
  <pre><code>$(function() {
      $('#AllContents').filter(":not(#someButtonHere)").on('click', function() {
      $('#sidebar, #content').addClass('active');
      $('#sidebarCollapse').addClass('change');
   });
  });
  </code></pre>