validate a column cell value before submiting via .editable...

validate a column cell value before submiting via .editable...

jQuery_userjQuery_user Posts: 27Questions: 0Answers: 0
edited October 2011 in Bug reports
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

Replies

  • fbasfbas Posts: 1,094Questions: 4Answers: 0
    edited October 2011
    this link suggests you can use "onSubmit" to validate your jeditable data:

    http://stackoverflow.com/questions/2425456/validate-jeditable-field
This discussion has been closed.