How to update cell value based on another cell using jeditable.js
How to update cell value based on another cell using jeditable.js
Hello,
I'm using jeditable to display a dropdown box on column #1. Based on the result of the script (setCol.php), I'd like to set column cell #2 value. How can I do that?
Thanks for your help
tableGrid.$('td:eq(1)').editable('ajax/setCol.php', {
loadurl : 'ajax/getCol.php',
type : 'select',
indicator : 'Saving...',
cssclass : 'selectInline',
tooltip : 'Set column',
onblur : 'submit'
});
Replies
I found a solution by calling a function instead
tableGrid.$('td:eq(10)').editable(function(value, settings) {