Change button label in Table
Change button label in Table
Is it possible to change the switch label of a button
I have the following button in a row that should have a different text when clicked
columns: [
{
data: null,
defaultContent: '<button>MZF</button>',
targets: -1
}
table.on('click', 'button', function (e) {
Here I want to change the text of the button
???? defaultContent = "Fertig";
});
is this possible ?
greetings chris
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Hi Chris,
should do the job.
In the event handler there, the scope of
thiswill be thebuttonwhich is how that works.Allan
Thank you very much for the tip, it worked