Disable responsive call on custom button click
Disable responsive call on custom button click
I'm using DataTables with the Responsive extension. Right now it's setup in my first column and I get the nice action of showing any hidden columns when I click on the row. My problem is that I have several custom buttons in the first column and when I click on those buttons, it shows and hides the data as well.
What would I need to add to the custom button onclick code to prevent the extra data from showing. But still leave that functionality in place if they click on the row around the buttons or the icon that the Responsive extensions includes before the buttons.
Answers
So the issues lies in the fact that the <TD> onclick is firing and completely before the <Button> onclick is firing. Otherwise event.stopPropagation() and event.cancelBubble should work.
Do you have any example code for this?