jQuery html attribute not working in IE

前端 未结 24 2655
[愿得一人]
[愿得一人] 2020-12-01 14:32

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

24条回答
  •  -上瘾入骨i
    2020-12-01 15:01

    The following method solved the problem for me:

    $('Element ID OR Class').empty().html(string);
    

    First use empty() & then set html using html()

提交回复
热议问题