I created this little function jQuery that when we select an option it returns the value:
But when I click on another option above, the value disappears and I need to go back in the select field and select another option to appear again
how can i keep this effect on click without it disappearing like that? Thanks for reading this far!
My code that handles this field:
if ($('.wc-pao-addon-distribuicao select').val() == 0 || $('.wc-pao-addon-tamanho-da-empresa select').val() == 0 || $('select#formato').val() == 0) {
$("#product-addons-total").hide();
} else {
$("#product-addons-total").show();
}
});

