Parsing HTML String with Ajax/jQuery

后端 未结 3 1441
[愿得一人]
[愿得一人] 2020-12-06 07:49

I asked at Parsing HTML String with jQuery how I can use jQuery on an html string. That all works, but when I apply it to ajax - it does not work. Here is the code.

3条回答
  •  既然无缘
    2020-12-06 08:18

    try $('div', code).each instead.. like so...

    $('div', code).each( function () {
      alert($(this).text());
    });
    

    I haven't tested it though...

提交回复
热议问题