I am using datatables inside tabs but problem is that when in click on view list tab then detail list tab's elements display below datatables
My guess is your "Detail View" elements are outside of the "Detail View" tab container. Doesn't sounds like a Datatables issue as it doesn't do anything with the HTML except to add event listeners, formatting, etc to the defined table. I you will probably want to use Stack Overflow to get help with your tabs. They will want to see your code at a minimum or a test case showing the issue.
It looks like you're new here. If you want to get involved, click one of these buttons!
DataTables designed and created by SpryMedia Ltd.
SpryMedia Ltd is registered in Scotland, company no. SC456502.