Change button label in Table
Change button label in Table
Hildeb67
Posts: 67Questions: 19Answers: 1
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
Answers
Hi Chris,
should do the job.
In the event handler there, the scope of
this
will be thebutton
which is how that works.Allan
Thank you very much for the tip, it worked