how to refresh a part of the page when configurable variation is selected in magento 2.3

I want to reload a div section on the product detail page of the configurable product when the configurable variation is selected. How do I achieve that? require([‘jquery’,’jquery/ui’],function($){ jQuery(document).on(‘click’, ‘.swatch-option’,function(){ $(‘#points-refresh’).load(document.URL + ‘ #points-refresh’); }) }); points-refresh is the id of the div section I want to reload whenever I switch one configurable child product…