I have added this code to hide an element when an option is selected it works in the back end when I am in custumizer but not when on the front end. Do I need to change the format of the code or have I done something wrong?
jQuery('table.variations select').on('change', function() {
value = $(this).val(); //take value from options
if (value != '') { //if value is not choose than hide
$('.vanish').css('display', 'None'); //hiding div
}else{
$('.vanish').css('display', ''); //show div again
}
});