Button Status
Button Status

in DataTables 2
Hello everyone,
I want to read the status of the button at the front in a line. Whether it contains a plus or minus sign. Is that possible?
Greetings, Chris
Answers
It is possible. Use
cell().node()
to get thetd
then use jQuery or Javascript methods to parse thebutton
to get the plus or minus status. If you need specific help with this then please provide a simple test case showing how the buttons are built into HTML so we can offer more specific suggestions.Kevin
a test case is not possible to create because it is an online project
this is how the button is triggered
Are there any examples of this?
Chris
Does that code work?
The best thing to do is to start with this template:
https://live.datatables.net/
Refactor the template to show the buttons in the first column. Add your click event handler and provide details of what isn't working and what you want the event handler to do.
This will allow us to see exactly what you have and what isn't working so we can offer specific suggestions.
Kevin
Kevin I wrote you a private email