You might want to give the .divTable an id.
You should include the .divTable in the DOM from the start
Set it's style to display:none;
On Click
var $dt = $(".divTable");
var $dm = $("#divMain");
$dm.append($dt);
$dt.show();
$dt.css('display', 'block');