edit a column jeditable
edit a column jeditable
Hello!
I am working with jeditable in the example can only edit all columns but I need to edit only the columns that are in position 2 and 3, I'm trying this way but it only takes the position 2
greetings and thank you very much
[code]oTable.$('td:nth-child(2),td:nth-child(3)').editable( 'editable_ajax.php', {
"callback": function( sValue, y ) {
var aPos = oTable.fnGetPosition( this );
oTable.fnUpdate( sValue, aPos[0], aPos[1] );
},
"submitdata": function ( value, settings ) {
return {
"row_id": this.parentNode.getAttribute('id'),
"column": oTable.fnGetPosition( this )[2]
};
},
"height": "10px",
} )},[/code]
I am working with jeditable in the example can only edit all columns but I need to edit only the columns that are in position 2 and 3, I'm trying this way but it only takes the position 2
greetings and thank you very much
[code]oTable.$('td:nth-child(2),td:nth-child(3)').editable( 'editable_ajax.php', {
"callback": function( sValue, y ) {
var aPos = oTable.fnGetPosition( this );
oTable.fnUpdate( sValue, aPos[0], aPos[1] );
},
"submitdata": function ( value, settings ) {
return {
"row_id": this.parentNode.getAttribute('id'),
"column": oTable.fnGetPosition( this )[2]
};
},
"height": "10px",
} )},[/code]
This discussion has been closed.