I'm trying to add a table using jQuery's appendTo function whenever a certain button is clicked. Here's my code:
$("#button").click(function() {
$("#divId").dialog("open");
$('#divId').appendTo('.table_width');
});
Note that in this code, .table_width is the table class and #divId is the div identity. However, this does not seem to be working. Am I doing this the right way? Thanks in advance for any help.