title: Javascript disabled button if checkboxes are not choosen - problem
body: <p>I wrote a code, that make the button not disabled when you check at least one checkbox with class "sum".</p>
  
  <p>I want to change the code, so I have to classes for and you can check only one checkbox (or two of them) to make the button not disabled.</p>
  
  <p>This is what I have and it works with only one class:</p>
  
  <pre><code> var checkBoxes = $('.sum');
  checkBoxes.change(function () {
      $('#dashboardbuttonpay').prop('disabled', checkBoxes.filter(':checked').length &lt; 1);
  });
  $('.sum').change();
  
      });
  </code></pre>
  
  <p>This is what I tried to do, but OR op does not work:</p>
  
  <pre><code> var checkBoxes = $('.sum' || **'.checkAll'**);
  checkBoxes.change(function () {
      $('#dashboardbuttonpay').prop('disabled', checkBoxes.filter(':checked').length &lt; 1);
  });
  $('.sum'  || **'.checkAll'**).change();
  
      });
  </code></pre>
  
  <p>The code works with &amp;&amp; operator, but I do not need this. </p>