Asynchronous jQuery in-place edit plugin
$('.editable').jedit('http://example.com/save.php');
$('.editable').jedit(function(value) {
return value;
});
$('.editable').jedit(function(value) {
return $.post('http://example.com/save.php', { value: value });
});
$('.editable').jedit(function(value) {
var d = $.Deferred();
setTimeout(function() {
d.resolve(value);
}, 2000);
return d.promise();
});
$('.editable').jedit(function(value, done) {
setTimeout(function() {
done(null, value);
}, 2000);
});