How I can use X-editable pass value to backend and get response
- by leonlong
I am new to jquery, recently I tried to use X-editable to edit a table. after I edited it , I want to pass value to PHP for process, but when I want to return something else back with value, it will get an error. What I mean is usually we can get several response from PHP, but I can get it like that through this.
$('#example').editable({
type: 'text',
name: 'example',
url: 'exprediction.php',
ajaxOptions: {
dataType: 'json'
},
success: function(newValue) {
var response = newValue.split("|");
value1 = response[0];
value2 = response[1]; //it did not work
}
});