jquery .html() vs .append()
- by Argiropoulos Stavros
Hello
Lets say I have an empty div:
<div id='myDiv'></div>
Is this:
$('#myDiv').html("<div id='mySecondDiv'></div>");
The same as:
var mySecondDiv=$('<div></div>');
$('myDiv').append(mySecondDiv);