【发布时间】:2012-07-02 10:38:04
【问题描述】:
看看我的这段代码:
$(".field").editable("http://"+document.location.host+"/index.php/welcome/update_record",
{
event : "mouseover",
style : "inherit",
callback: function(value, settings)
{
//Some code
}
}
但我有一些问题 - 这段代码对我很有用,因为它通过“输入”按钮捕获点击。但现在我需要将字段类型更改为“textarea”:
$(".field").editable("http://"+document.location.host+"/index.php/welcome/update_record",
{
type : "textarea",
event : "mouseover",
style : "inherit",
callback: function(value, settings)
{
//Some code
}
}
现在它不起作用 - 即回调函数从未执行过。请告诉我,我需要有 textarea 字段并捕捉按 Enter 的事件。
【问题讨论】: