Update editor select field ipOpts from Bootstrap Modal
Update editor select field ipOpts from Bootstrap Modal
Hi,
I'm trying to update the options for an editor select field from a Bootstrap modal.
I can target the datatable using:
var table = $('#example').DataTable();
and then do something like:
table.row.add(dataToAdd).draw();
but when I try to change some editor options using:
editor.field("field_name").update(newIpOpts);
I get an 'editor not defined' error. Is there some way to target the specific editor on the page?
Thanks
- Tom
This discussion has been closed.
Answers
Hi,
The error suggests that you don't have an
editor
variable, or possibly that it isn't available in the current execution scope.Do you assign the returned value from
new $.fn.dataTable.Editor(...)
to a variable?Allan