Jquery append - Opening and closing a tag

前端 未结 3 1580
伪装坚强ぢ
伪装坚强ぢ 2020-12-21 09:51

I have a jquery block like this. After the html is rendered i see that the

tag opens and closes immediately, same way,
3条回答
  •  南笙
    南笙 (楼主)
    2020-12-21 10:38

    If you want that all elements are in the article tag, you should write:

    .append(
       $( '
    ) .append( ... ) )

提交回复
热议问题