[jquery document processing InsertAfter (content) after (CONTENT|FN)] This method is used to insert all matching elements behind another, specified element element collection, to implement an external insert

Source: Internet
Author: User

After (Content | fn): Insert content after each matching element

InsertAfter (content):

Inserts all matching elements into another, after the specified set of element elements

In fact, using this method reverses the normal $ (A). After (b) operation, that is, instead of inserting b behind a, insert a into the back of B

In jquery 1.3.2, AppendTo, Prependto, InsertBefore, InsertAfter, and ReplaceAll have become a destructive operation, and to select previously selected elements, use the end () method, see Example two of the AppendTo method

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 '). After ($ (' #append '))); $(' P '). InsertAfter ($ ('. Active '))); });</script>

[jquery document processing InsertAfter (content) after (CONTENT|FN)] This method is used to insert all matching elements into another, the specified element element, after the collection of elements, for external insertion

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.