jQuery html attribute not working in IE

前端 未结 24 2686
[愿得一人]
[愿得一人] 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条回答
  •  庸人自扰
    2020-12-01 14:53

    If you are parsing xml using jquery, and you need html() in IE, try this:

    var content = ($.browser.msie) ? $(this).context.xml : $(this).html();

    This solved my problem. I hope it will help someone too.

    Greetings.

提交回复
热议问题