SHARE
TWEET

Formidable Forum Response to Howard Jennings

vfontjr Feb 23rd, 2019 240 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script>
  2. jQuery(document).ready(function($){
  3.     $('select[name="item_meta[211]"]').on("change", function() {
  4.         var val1 = $(this).val();
  5.         if (val1 == 'MI - 0.00943') {
  6.             /* hide the values we don't want */
  7.             $("select[name='item_meta[210]']").children('option[value="SWBC - 0.0"]').css('display','none');
  8.             $("select[name='item_meta[210]']").children('option[value="FIC - 0.0"]').css('display','none');
  9.             $("select[name='item_meta[210]']").children('option[value="Seattle - 0.002"]').css('display','none');
  10.            
  11.             /* display the ones we do */
  12.             $("select[name='item_meta[210]']").children('option[value="Seattle - 0.0"]').css('display','');
  13.             $("select[name='item_meta[210]']").children('option[value="FIC - .003"]').css('display','');
  14.         } else if (val1 !== 'MI - 0.00943') {
  15.             /* display the values we want to see */
  16.             $("select[name='item_meta[210]']").children('option[value="SWBC - 0.0"]').css('display','');
  17.             $("select[name='item_meta[210]']").children('option[value="FIC - 0.0"]').css('display','');
  18.             $("select[name='item_meta[210]']").children('option[value="Seattle - 0.002"]').css('display','');
  19.            
  20.             /* hide the values we don't want */
  21.             $("select[name='item_meta[210]']").children('option[value="Seattle - 0.0"]').css('display','none');
  22.             $("select[name='item_meta[210]']").children('option[value="FIC - .003"]').css('display','none');
  23.         }
  24.     });
  25. });
  26. </script>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top