title: Run javascript code if specific select options are chosen
body: <p>I need to have multiple state codes as conditional options not just "C".
  But i don't need all of the options, because this code should appear only with some of the options, not all.</p>
  
  <p>So where it says <code>var stateCode = 'C';</code> i need to have something like: <strong>'C','D','G','K'</strong>.</p>
  
  <p>Thanks!</p>
  
  <pre><code>&lt;script&gt;
      jQuery(document).ready(function($){
  
          // Set the state code (That will display the message)
          var stateCode = 'C';
  
          $('select#billing_state').change(function(){
  
              selectedState = $('select#billing_state').val();
  
              if( selectedState == stateCode ){
                  $('.shipping-notice').show();
              }
              else {
                  $('.shipping-notice').hide();
              }
          });
  
      });
  &lt;/script&gt;
  </code></pre>
  
  <p>Update:
  Here is the html code.. with only 3 options as example.
  I need the code to work only with option C and B but not K.</p>
  
  <pre><code>&lt;select name="billing_state" id="billing_state" class="state_select select2-hidden-accessible" autocomplete="address-level1" data-placeholder="Elige una opción…" data-input-classes="" tabindex="-1" aria-hidden="true"&gt;
  
  &lt;option value=""&gt;Select an option&lt;/option&gt;
  &lt;option value="C"&gt;Ciudad Autónoma de Buenos Aires&lt;/option&gt;
  &lt;option value="B"&gt;Buenos Aires&lt;/option&gt;
  &lt;option value="K"&gt;Catamarca&lt;/option&gt;
  
  &lt;/select&gt;
  </code></pre>