How to get the innerHtml, including the tag, using jQuery?

后端 未结 4 667
心在旅途
心在旅途 2021-01-02 06:45

Sorry, if the title is too obscure ;D.

Actually the problem is, lets say i am this code.


   

        
4条回答
  •  庸人自扰
    2021-01-02 07:24

    Haven't used this myself but looks like it may be of use:

    http://yelotofu.com/2008/08/jquery-outerhtml/

    demo here: http://yelotofu.com/labs/jquery/snippets/outerhtml/demo.html

提交回复
热议问题