How to implement call back function using editable plugin in Jquery -
i using editable plugin edit of rows , update data database.after updating data database , have success message using call function. please suggest prefect solution call other function using plugin.
$(function () { var url = $baseurl + "/abc/abc/itemslist"; $('.txt-editable').editable(url,callbackfunction, { onblur: function (value) { this.reset(value); $(this).html(value); return (value); }, width: 90, id: 'element_id', value: 'value' }); }); function callbackfunction(){ alert("success message"); });
$('#id').editable({ type:'text', url: 'test/edit/1', source: source, success:function(response, newvalue) { callfunction(); var data = json.parse(response); }, send: 'always', validate: function(value) { } });
Comments
Post a Comment