You can make an Ajax call so that you can pass everything (if you are looking for the future, maybe you are going to add a few functions ..).
Example:
$('.edit').editable( function(value, settings) { // prepare the data, add all parameters you want var data = "param1=value1" + "¶m2=value2"; var ret = ""; // make the ajax call to do the work (not async) $.ajax({ type: "POST", url: "page.php", data: data, async: false, success: function(msg) { if (msg.length != 0) { // set the value to write in the element ret = msg; } } }); // return the element to save into the element return ret; }, { // set the jeditable setting cssclass: 'classname' } );
I think this method is more flexible to handle all cases.
source share