jQuery: Can't select just appended element

前端 未结 7 1593
天涯浪人
天涯浪人 2021-02-18 13:55

This is what happens on event:

$(\'div#pages\').append($(\'
...
\'));

And then, on another eve

7条回答
  •  孤街浪徒
    2021-02-18 14:45

    missed quotes on class name page

    Also missed ) for append()

    Should be

        $('div#pages').append($('
    ...
    '));

    instead of

    $('div#pages').append($('
    ...
    ');

提交回复
热议问题