你好我需要删除一个表单标签,但不是内容:
<form id="form">
<div> not remove this only the form tag</div>
</form>
Run Code Online (Sandbox Code Playgroud)
Ale*_*ton 26
$form = $('#form');
$form.replaceWith($form.html());
Run Code Online (Sandbox Code Playgroud)
应该做你需要的.