I am unable to find one ajax script . Can any body tell me where is the script written for this page https://prnt.sc/szvwqu On selection of attributes , how the price gets changed ? where can i find the script for this?
For the price, there is a json in your page with all variants and prices. So no ajax request is needed to change the product price. If you take a look on your page source you will find something like this:
You have to search "spConfig".
This json is created here: \Magento\ConfigurableProduct\Block\Product\View\Type\Configurable::getJsonConfig
The JS that renders this options on frontend is located in: /vendor/magento/module-swatches/view/base/web/js/swatch-renderer.js
The JS that updates the price value is located here: /vendor/magento/module-catalog/view/base/web/js/price-box.js