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
The following method solved the problem for me:
$('Element ID OR Class').empty().html(string);
First use empty() & then set html using html()
empty()
html()