function test() {
var a = $('<p>'),
b = $('<div>')
for (var i = 0; i < 10; i++) {
b.append(a)
}
console.log(b)
}
This function creates 1 element with 1
element inside it. Why there is not 10
elements? How can I append as many
element as many times loop goes?