Destroy/clear Issue if we have same component multiple times in same page
Destroy/clear Issue if we have same component multiple times in same page
Manikantha R
Posts: 7Questions: 1Answers: 0
I have one table component and I have authored same table component 3times in page now issue is when I tried to clear or destroy it's not working as expected
This question has an accepted answers - jump to answer
Answers
Can you provide a link to your page or a test case replicating the issue so we can see what you are doing to help debug?
https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
Kevin
Hi Kevin,
Thanks for your response let me share the Test case I have HTML File like below
I have 2 tables with same ID when i click i am getting output like below.
Your HTML isn't valid. You have two elements with the same id. Fixing that appears to allow it to work as expected: https://live.datatables.net/benepugi/1/edit .
Allan
Hi allan,
Thanks for your quick response its solved my Issue