title: show field only if 2 conditions are true?
body: <p>This is a simple question but could someone help me with javascript which will show a div based on <strong>two</strong> dropdown selections being true?</p>
  
  <p>This is the code I have but I just want to know if this is correct? </p>
  
  <p><strong>EDIT</strong> SOLVED with both answers below. Thanks a lot guys!</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>&lt;script&gt;
  function myFunction(){
  $('#LoadingPlace,#DeliveryPlaces').change(function () {
      if ($('#DeliveryPlaces').val() == '1' || 
              ["Seaport 1", "Seaport 2", "Seaport 3"].indexOf($('#LoadingPlace').val()) &gt; -1) {
          $("{#ContainerSize1").show();
          $("#ContainerFeature1").show();
    $("#Genset1").show();            
    } 
    
   else {
          $("{#ContainerSize1").hide();
          $("#ContainerFeature1").hide();
    $("#Genset1").hide();  
      }    
  
   })};
  &lt;/script&gt;</code></pre>
  </div>
  </div>
  </p>