'Can not get exact text when change select tag in jQuery

I'm trying to get value has rendered from variable.php of Woocommerce, I mean get the content render by javascript when click select variable tag. I tried these code bellow but can not get exactly:

<script>
$('.variations .value select').on('change', function(){
    var one = $(".woocommerce-variation-custom_field").text();
    console.log(one);
    $(".pricemarket").text(".woocommerce-variation-custom_field");
  });
</script>

I want to get value has rendered when change option, then add value to .pricemarket element.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source