Jeditable 是一个用来就地编辑(Edit in Place)文本信息的 jQuery 插件。
使用示例:
$(document).ready(function() {
$('.edit').editable('http://www.example.com/save.php', {
indicator : 'Saving...',
tooltip : 'Click to edit...'
});
$('.edit_area').editable('http://www.example.com/save.php', {
type : 'textarea',
cancel : 'Cancel',
submit : 'OK',
indicator : '<img src="img/indicator.gif">',
tooltip : 'Click to edit...'
});
});
在线演示:http://www.appelsiini.net/projects/jeditable/default.html