I am trying to append more data and style my table inside my popup window.
I have
var popup = window.open("popup.html", "popup","width=800","height=600");
popup.document.write(
"<table id='dataTable'>"+
"<tr><th>test1</th><th>test2</th><th>test3<th></th>test4</th><th>test5</th></tr>" +
"</table>");
ajax callback data
codes....
How to append the data and style my table?
Using
$("#dataTable",popup.document)to get your table in popup window:Here is the demo