Table reloads without reason
Table reloads without reason

Hi,
I have an issue with the buttons in my Datatables. I have two tables at my page, the first works fine, but I can't define my actions for the buttons in the second table. Even if I only have the button in the column without a function, if I click on it, the first table always tries to refresh (with an uncomplete ajax request, this results in a stuck table). I don't use the same classes in the different tables. I tried do upload my case with the debugger
https://debug.datatables.net/owotih
Does anyone have an idea what's wrong?
Greetings,
Christoph
Replies
Can you provide a link to your page or a test case so we can see what you are doing?
https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
If not post you JS code so we can take a look for anything obvious.
Kevin
Hi,
I was struggling to create a test case meanwhile, but I've found the reason for my sites behaviour.
My buttons where defined like <button class="myClass">Click</button>
This worked fine in my first table.
But the second table is embedded in a
<
form>, so the buttons do a page reload without any function I define.
If I change it to <button type="button" class="myClass">Click</button> they act like I want them to do.
Cheers,
Christoph