【发布时间】:2013-11-05 03:22:28
【问题描述】:
<script type="text/javascript">
$(document).ready(function() {
$(".edit").click(function(){
temp = $(this).attr('id').split("_");
$.get('/patients/getPlanofCareById', { "id": temp[1]},
function(data){
$('#patient-poc-frm').populate(data);
}, "json");
});
});
</script>
Firebug 发出表单元素不存在的通知,但我看到它们使用的是 firebug。我确信他们在那里。您会注意到我使用 jquery 发布变量并使用 json 发回结果。
任何
【问题讨论】:
-
数据中有什么?你从 getPlanofCareByID 返回什么?
-
这个不是特别好,但究竟什么是“getPlanofCareById”? get() 不需要访问页面然后搜索信息吗?
标签: jquery html forms populate