validate a column cell value before submiting via .editable...
validate a column cell value before submiting via .editable...
jQuery_user
Posts: 27Questions: 0Answers: 0
Hello,
I am using http://www.datatables.net/examples/api/editable.html combined with fnDrawCallback to edit one column.
[code]oTable = $('#tableID').dataTable( {
"fnDrawCallback": function(){
$('td:eq(0)', this.fnGetNodes()).editable('', {
"callback": function(sValue, y) {
var aPos = oTable.fnGetPosition(this);
oTable.fnUpdate(sValue, aPos[0], aPos[1]);
}
});
}
});[/code]
How to do validation before calling the URL...,
Thanks
I am using http://www.datatables.net/examples/api/editable.html combined with fnDrawCallback to edit one column.
[code]oTable = $('#tableID').dataTable( {
"fnDrawCallback": function(){
$('td:eq(0)', this.fnGetNodes()).editable('', {
"callback": function(sValue, y) {
var aPos = oTable.fnGetPosition(this);
oTable.fnUpdate(sValue, aPos[0], aPos[1]);
}
});
}
});[/code]
How to do validation before calling the URL...,
Thanks
This discussion has been closed.
Replies
http://stackoverflow.com/questions/2425456/validate-jeditable-field