jquery append, after 차이

2020. 8. 31. 17:06JavaScript/JQuery

728x90

https://www.quora.com/What-is-the-difference-between-append-and-prepend-method-in-Jquery

 

*Definations are dumped from stackoverflow (:-\

 

.append() : Insert content, specified by the parameter, to the end of each element in the set of matched elements.

 

.after() : Insert content, specified by the parameter, after each element in the set of matched elements.

 

.prepend() : Insert content, specified by the parameter, to the beginning of each element in the set of matched elements.

 

.before() : Insert content, specified by the parameter, before each element in the set of matched elements.

728x90
반응형