【发布时间】:2018-11-26 20:37:24
【问题描述】:
我有以下可编辑的代码:
$this->widget('editable_ori.Editable', array(
'url' => $this->createUrl('index'),
'pk' => Yii::app()->user->id,
'name' => 'index',
'type' => 'text',
'text' => $data,
'placement' => 'top',
'showbuttons' => 'bottom',
'send' => 'auto',
));
我想在我的 js 中获取该字段的内容。
我尝试使用下面的代码在 js 中获取此内容。但它不起作用
$(".editable editable-click").text;
【问题讨论】:
-
您想在提交后或加载后立即获取可编辑文本字段中的值吗?
-
@jmsds 加载完毕。
-
请务必将答案标记为正确,这有助于您解决问题。它可能会帮助其他人寻找相同的解决方案。