title: jQuery if each input value inside each li == 0
body: <p>I'm trying to solve this issue. I have multiple inputs and I would like to compare if everyone has value == 0 and is also checked.</p>
  
  <p>I don't know how to do it - I spend almost day searching and finding a way how to do it and don't have clue how to go further. I tried to find if one input is checked and has that value.</p>
  
  <p>Thank U for Your help.</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).on('change','select, input', function() {
    console.log('input/select has been changed');
    
    var $this = $(this);
    var $inputValue = $this.val();
    
    console.log('input Value is ' + $inputValue);
    
    if ($inputValue == 0 &amp;&amp; $this.is(':checked')) {
      console.log('One input is checked and has 0 value');
    }
    
    if ('all first inputs are checked and has 0 value') {
      console.warn('Could U help me?');
    }
  
  });</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;body&gt;
    &lt;div class="destinations"&gt;
      &lt;ul&gt;
        &lt;li&gt;
          &lt;label&gt;
            &lt;input type="checkbox" name="destination" value="0"&gt;
          &lt;/label&gt;
        &lt;/li&gt;
        &lt;li&gt;
          &lt;label&gt;
            &lt;input type="checkbox" name="destination" value="5"&gt;
          &lt;/label&gt;
        &lt;/li&gt;
        &lt;li&gt;
          &lt;label&gt;
            &lt;input type="checkbox" name="destination" value="3"&gt;
          &lt;/label&gt;
        &lt;/li&gt;
      &lt;/ul&gt;
    &lt;/div&gt;
    &lt;div class="languages"&gt;
      &lt;ul&gt;
        &lt;li&gt;
          &lt;label&gt;
            &lt;input type="radio" name="language" value="0"&gt;
          &lt;/label&gt;
        &lt;/li&gt;
        &lt;li&gt;
          &lt;label&gt;
            &lt;input type="radio" name="language" value="5"&gt;
          &lt;/label&gt;
        &lt;/li&gt;
        &lt;li&gt;
          &lt;label&gt;
            &lt;input type="radio" name="language" value="3"&gt;
          &lt;/label&gt;
        &lt;/li&gt;
      &lt;/ul&gt;
    &lt;/div&gt;
    
    &lt;div class="rooms"&gt;
      &lt;ul&gt;
        &lt;li&gt;
          &lt;label&gt;
            &lt;input type="checkbox" name="room" value="0"&gt;
          &lt;/label&gt;
        &lt;/li&gt;
        &lt;li&gt;
          &lt;label&gt;
            &lt;input type="checkbox" name="room" value="5"&gt;
          &lt;/label&gt;
        &lt;/li&gt;
        &lt;li&gt;
          &lt;label&gt;
            &lt;input type="checkbox" name="room" value="3"&gt;
          &lt;/label&gt;
        &lt;/li&gt;
      &lt;/ul&gt;
    &lt;/div&gt;
  &lt;/body&gt;</code></pre>
  </div>
  </div>
  </p>