title: jQuery - Field values and comparisons
body: <p>I am making a form validation and want to check a number of radio button values. By default no values are selected. There are two options for each question - yes and no.</p>
  
  <p>First I hide the 'caution message' and check whenever one of the inputs are changed. What I want to happen is when all options are set to no (value is N), then the error message will show, otherwise it will hide. I want it so that if any of the options are then changed to yes the error message will hide. What happens here is if any of the values are changed to yes the error message shows. Maybe I'm over complicating how this should work?</p>
  
  <pre><code>$('.cautionMessage').hide();
  $('.weeeDetailsChange input').change(function () {
      var ownBrand = $('input[name="ownbrand"]:checked').val();
      var resell = $('input[name="resell"]:checked').val();
      var ImportBasis = $('input[name="importbasis"]:checked').val();
      var distributeEEE = $('input[name="distributeeee"]:checked').val();
      var exportEU = $('input[name="exporteu"]:checked').val();
      var distanceSelling = $('input[name="distanceselling"]:checked').val();
  
      if ( ownBrand &amp;&amp; resell &amp;&amp; ImportBasis &amp;&amp; distributeEEE &amp;&amp; exportEU &amp;&amp; distanceSelling === 'Y' ) {
          $('.cautionMessage').show();
          console.log('Show');
      } else {
          $('.cautionMessage').hide();
          console.log('Hide');
      }
  });
  </code></pre>