Change button label in Table
Change button label in Table
![Hildeb67](https://secure.gravatar.com/avatar/eff90f4a07179300873686a5d6ba3ce4/?default=https%3A%2F%2Fvanillicon.com%2Feff90f4a07179300873686a5d6ba3ce4_200.png&rating=g&size=120)
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