Difference between append(), prepend() and after(),before().

.append(): This function Insert the data or content inside an element at last index. Means it puts the content inside an element (making the content its child) specified by the parameter at the end of element in the set of matched elements.

Whereas ,

.after(): This function puts the element after the specified element. Or you can say that it insert data outside an element (making the content its sibling) in the set of matched elements.

.prepend(): This function Insert the data or content inside an element at first index. Means it puts the content inside an element specified by the parameter at the first of element in the set of matched elements.

Whereas ,

.before(): This function puts the element before the specified element. Or you can say that it insert data outside an element (making the content its sibling) in the set of matched elements.

Example:-

3. Before
2. PrependLorem ipsum dolor sit amet consectetur adipiscing elitr sed diam nonumy tempe goreng.1. Append
4. After

Comments

  1. For selector video
    https://www.youtube.com/watch?v=IyHHH49dQ34&list=PLU4yvac0MJbL8EkEMxzCT0k39Vi2zgb2g&index=12

    ReplyDelete
  2. google activity link

    https://www.youtube.com/watch?v=8Ide6nCznh4

    ReplyDelete
  3. for safe mobile
    https://www.youtube.com/watch?v=i_0Ves_t2UE

    ReplyDelete

Post a Comment

Popular posts from this blog

Bootstrap Breakpoints