Appends all matching elements to another specified set of element elements.
In fact, using this method reverses the normal $ (A). Append (b) operation, that is, instead of appending B to a, append a to B.
In jquery 1.3.2, AppendTo, Prependto, InsertBefore, InsertAfter, and ReplaceAll have become a destructive operation , and the return value is all of the appended content, Rather than just the previously selected element. So, to select the previously selected element, you need to use the end () method, see example Ii.
Instance:
;} Html{font:15px/1.2em ' Courier New '; color: #666; width:750px;margin:25px auto;} ul{list-Style:none;} . Hover{color: #FF96EC;}</style><script type= ' Text/javascript ' > $(function() {$ ('. Active '). AppendTo ($ (' #append '));//$ ('. Active '). html (). AppendTo (' div '); });</script>
[jquery document processing AppendTo (content)] This method is used to append all matching elements to another specified set of elements