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
Also note that if you use a tagName prefix in your selector it is slower than just using the id.
In your case just use $("#edit-state").append(options)
$("#edit-state").append(options)