jQuery html attribute not working in IE

前端 未结 24 2668
[愿得一人]
[愿得一人] 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:56

    After hours of frustration I realized that IE does not support jquery attribute functions for html5 elements other than div. I was trying to do this:

    success: function (response, textStatus, XMLHttpRequest) {
        $response = $(response.replace(/\t/g, " "));
        $responseHTML = $response.find("#pageContainer").html();
        $container.html($responseHTML);
    

    For this element:

    
    

    By changing it to this it solved the problem:

    
    

提交回复
热议问题