jquery .text doesn't render HTML elements into the DOM

前端 未结 3 1245
故里飘歌
故里飘歌 2020-12-12 07:47

I am loading a list of images into a div with the following bit of jQuery :

                var jewellerDdl = \"<%= JewellerDropDownList.ClientID %>\";         


        
3条回答
  •  长情又很酷
    2020-12-12 08:02

    If you insert HTML code into the DOM, then you must use the html() method, not the text() method.

提交回复
热议问题