I can't add table to div with alert box explicitly called.
var content = "<table class='table1'>";
$.getJSON("/controller/Method", {
param1: val1
}, function (data) {
$.each(data, function (key, value) {
content += "<tr><td class='class1'>text1</td></tr>";
});
content += "</table>";
});
alert(content);
$('#div1').append(content);
If i remove the alert box, table is not adding to div.
I don't understand why table is getting added only on page flickers like alert box.
Weird!!