What difference between html() and append() in javascript

#3
88
1 Answer
Question Image

What is difference between $("#id").html() and $("#id").append() in javascript.


Related to:
javascripthtmlappendajax
0
Answer
Answer 1 of 1
# 12

html() Method completely replace the content inside the selected item

append() Method  just append to the end of the content inside the selected item.

0
0
0
Related Articles

If you still have a question about this, submit it in our Q&A community - Ask Question