title: Check to make sure all fields are filled Jquery
body: <p>I'm trying to make an easy validator in jquery for my input fields. 
  Currently i got the following: </p>
  
  <pre><code>function checkInputs(){
  var isValid = true;
  $('.input-required').each(function() {
       if($(this).val() === ''){
          isValid = false;
           return false;
       }        
   });
  return isValid;
  }
  </code></pre>
  
  <p>And then i got a button right that is this:</p>
  
  <pre><code>$('#confirm').click(function () { 
      alert(checkInputs());
  });
  </code></pre>
  
  <p>But this always returns true even if the input is empty.
  Also after this works am going to make to where if all inputs are filled in, a button will be enabled to click on.</p>
  
  <p>edited it so it has a selector now, still getting always true.</p>
  
  <p>Thanks in advance</p>