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
For selector video
ReplyDeletehttps://www.youtube.com/watch?v=IyHHH49dQ34&list=PLU4yvac0MJbL8EkEMxzCT0k39Vi2zgb2g&index=12
google activity link
ReplyDeletehttps://www.youtube.com/watch?v=8Ide6nCznh4
for safe mobile
ReplyDeletehttps://www.youtube.com/watch?v=i_0Ves_t2UE