i have two selectoption fields ,location and products. I need to display dynamic products list in the dropdown based on selected location.
Planning to do this from front as we are getting these products list from an external api and can't be stored in DB . I need help with JS.
How to trigger onchange event when location is selected to make an api call from JS.