Button click to change value
Button click to change value
I ask you and please you for help me for small source code for - button click to change value:
- example - this is working
$('a.editor_create').on('click', function (e) {
e.preventDefault();
editor.create({
title: 'NEW ROW',
buttons: 'CREATE',
onEsc: 'blur'
});
});
- example:
https://editor.datatables.net/examples/api/triggerButton.html - for add cost price.
I want to source code for I click to CHANGE, then field will changed to value in string - 'YES'.
Thank you.
This discussion has been closed.
Answers
Click what to change?
You can use the
field().val()
method to set a value.Allan
Please for source code, i want to manual button:
example:
Not working
That doesn't look like valid Javascript. There is no
change
button that can be extended unless you have defined it yourself?Have you read over the custom button documentation?
Happy to write an example for you under the support options.
Allan