Data table show double search bar and pagination

Data table show double search bar and pagination

nakatanakata Posts: 7Questions: 0Answers: 0
edited October 2013 in DataTables 1.9
Good day,

In my first click on the link which bought up the dialog box with data table, it show perfectly and doing what is expecting, however, after user click on some other page and re-click the same link, it show the dialog box which contain double search bar and pagination, i google around and found the some glue mentioned destroy the table before data table call up again.

but when i try to use this below code, it still show me the same, can someone please enlighten me how i can resolve this issue ?
appreciated snippet of code if possible, as i still picking up jQuery and Data table.

[code]
if ((objTable != undefined) || (objTable!=null)) {
objTable.fnDestory();
objTable.undefined;
$('#mytable_div').empty();
}
[/code]


Thanks in advance!
This discussion has been closed.