jquery .html() vs .append() - Stack Overflow
Lets say I have an empty div: Is this: $('#myDiv').html(""); The same as: var mySecondDiv=$('... ... They are not the same. The first one replaces the HTML without creating another jQuery object first....