title: Multiple checkboxes state checked
body: <p>I am using knockout Js. There are two checkboxes. If any checkbox is not checked then the submit button will be disabled. There might be cases where there will be 1 checkbox instead of 2 checkboxes. So I have a condition like this</p>
  <pre><code> if ((self.checkBox1() === true &amp;&amp; self.checkBox2() === true) || ($(&quot;#checkbox2&quot;).length &lt;= 0 &amp;&amp; self.checkBox1() === true) || ($(&quot;#checkbox1&quot;).length &lt;= 0 &amp;&amp; self.checkBox2() === true)) {
          $('.submit-btn').attr('disabled', false);
  
      } else {
          $('.submit-btn').attr('disabled', true);
  
      }
      return true;
  }
  </code></pre>
  <p>This is a <a href="http://jsfiddle.net/4xve2fc7/" rel="nofollow noreferrer">Jsfiddle</a> sample I have created.</p>
  <p>Is there a better way of doing this?</p>