//Summer Camp products get variation ID to show/hide descriptions setTimeout(function(){ variationid= ''; if(typeof $('input[name=variation_id]').val() != "undefined" && $('input[name=variation_id]').val() !== null) { variationid = $('input[name=variation_id]').val(); $('div#variation-'+variationid).show(); } }, 100); setTimeout(function(){ $('body').on('change', '#camps',function(){ $('div#variation-'+variationid).hide(); setTimeout(function(){ variationid = $('input[name="variation_id"]').val(); $('div#variation-'+variationid).show(); }, 100) }); }, 200);