所以代码如下:
<div id="wrapper"> <div id="innerDiv1"></div> <div id="innerDiv2"></div> <div id="innerDiv3"></div> </div>
任何帮助,一如既往,赞赏.
谢谢.
unwrap
$("#innerDiv1").unwrap();
从文档(强调添加):
The matched elements (and their siblings,if any) replace their parents within the DOM structure.