How to update cell value based on another cell using jeditable.js

How to update cell value based on another cell using jeditable.js

eclipsetalkeclipsetalk Posts: 10Questions: 3Answers: 0

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

  • eclipsetalkeclipsetalk Posts: 10Questions: 3Answers: 0

    I found a solution by calling a function instead

    tableGrid.$('td:eq(10)').editable(function(value, settings) {

This discussion has been closed.