Site icon Hip-Hop Website Design and Development

Show customized subject worth in woocommerce variable product by way of jQurey

I attempt to show the customized worth fields that every variation has.

I take advantage of this code to show variation id and variation description:

add_action( 'woocommerce_before_single_variation',
 'action_wc_before_single_variation' );
operate action_wc_before_single_variation() {
    ?>
    <script kind="text/javascript">
    (operate($){
        $('kind.variations_form').on('show_variation', operate(occasion, knowledge){
            console.log( knowledge.variation_id );      // The variation Id  <===  <===
            console.log( knowledge.variation_description );        // The variation description  <===  <===

        });
    })(jQuery);
    </script>
    <?php
}

Now I need to present these fields from the image in the identical operate.

Is that potential?