JavaScript innerHTML is not working for IE?

后端 未结 3 1630
我寻月下人不归
我寻月下人不归 2020-11-30 12:49

I am using ajax call for to bring the list for my drop down and assign it to html,works fine for mozilla nad crome but for IE it displays a blank dropdown

v         


        
3条回答
  •  被撕碎了的回忆
    2020-11-30 13:45

    If you're using jQuery you can use append() like this:

    $get('yourTargetObjectId').append('

    this test to add

    ');

    append() inserts content at the end of the selected element and use prepend() to insert at the beginning of the selected element.

提交回复
热议问题