$ (). empty (); This method deletes all child nodes under the current node, noting that the current node will not be deleted
$ (). remove (); This method deletes all child nodes under the current node, noting that the current node will be deleted
$ (). Append (' <a>something</a> ')//The method adds this a tag at the end of the current node
$ (). After (' <span style= "font-family:arial, Helvetica, Sans-serif;" ><a>something</a></span> '//The method adds this a tag after the current node is equivalent to adding a sibling element
$ (). Before (' <span> </span> ') by the same token, add a span to the front of a particular element
$ (). Prev ();
This method finds the previous sibling node of the current node, and the neighboring previous sibling
$ (). Next ();
This method will find the next sibling node of the current node, the next sibling node
$ (). Prevall ();
This method finds all sibling nodes before the current node
$ (). Nextall ();
This method finds all sibling nodes after the current node
$ (). siblings ();
This method finds all sibling nodes of the current node including before and after
---These methods parentheses inside please add selector to filter please note that the child nodes under sibling nodes and sibling nodes are different concepts
These are simple methods that are complicated and have to refer to the jquery API
This jquery delete node to add nodes to find the simple realization of the sibling node is small series to share all the content, hope to give you a reference, but also hope that we support the cloud habitat community.