I am using country and state dropdowns in my form. Whenever the user selects the country in the dropdown, the respective states of the country will populate in the states dr
I had the same problem and found that the simplest solution was to use the replaceWith() function.
replaceWith()