Node Deletion is more common in the application, how to delete a node dynamically to achieve a special effect, here is a good example, I hope to help you.
Code as follows: <! DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01 transitional//en" "Http://www.w3.org/TR/html4/loose.dtd" > <html > <head> <meta http-equiv= "Content-type" content= "text/html; Charset=utf-8 "> <title>jquery6</title> <script type=" Text/javascript "src=" Jquery-1.7.2.js "></script> <script type=" Text/javascript "> //Node move $ (function () { The //remove method returns the JQuery object //var Removeli = $ ("UL Li:eq (3)") of the removed node. Remove (); //removeli.appendto ($ ("ul ); //$ ("ul li"). Remove ("Li[title!= 2]"); //Empty elements $ ("UL Li:eq (3)"). Empty (); }); </script> </head> <body> <p title= "Hello World" > Do you think Saint-Shi garden training is good? </p> <ul> <li title= "1" > Good </li> <li title= "2" > Very good </li> <li title= "3" > Very good </li> <li title= "4" > Special good </li> <li title= "5" > That's great.lt;/li> <li title= "6" > Good cannot be described </li> </ul> </body> </html>