Jquery remove form tag, not content

后端 未结 6 654
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-17 01:33

Hello i need to remove a form tag but non the content:

not remove this only the form tag
6条回答
  •  渐次进展
    2020-12-17 01:48

    $form = $('#form');
    $form.replaceWith($form.html());
    

    Should do what you need.

提交回复
热议问题