What is the difference between Jquery\'s .clone() and .html() functions?
Jquery documentation states:
The .clone() method performs a deep copy of
from the quoted sentences you posted above the answer is there:
.clone()it copies the matched elements as well as all of their descendant elements and text nodes. means it select all the elements within the selector.
.clone()
while .html() it only selects the first element.
.html()