jqGrid的编辑表单自动完成= QUOT;关闭"默认情况下,如何改变为自动完成= QUOT;在" [英] jqgrid edit form autocomplete="off" by default, how to change to autocomplete="on"

查看:1008
本文介绍了jqGrid的编辑表单自动完成= QUOT;关闭"默认情况下,如何改变为自动完成= QUOT;在"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近我的jqGrid的编辑表单尚未具有很好的自动填充功能,是常见的谷歌Chrome和Firefox。我发现jqGrid的编辑形式正在呈现每个<输入> 具有这种性质的:

Recently my edit forms for jqgrid have not been having the nice autofill functionality that is common to Google Chrome and Firefox. I found that the jqGrid edit forms are being rendered with each <input> having this property:

autocomplete="off"

在jqGrid的我有什么在我的定义网格做删除此属性或将其设置为自动完成=关于

In JqGrid what do I have to do in my grid definition to remove this property or set it to autocomplete="on"?

我没有看到任何关于它在 Col​​Model定义编辑表单选项。在这里任何帮助将是真正伟大的!

I do not see anything about it in the ColModel definition or the edit form options. Any help here would be really great!

谢谢!

推荐答案

我不认为有在的编辑API 以在编辑表单字段启用自动填充功能。虽然你能做到这一点的情况下使用jQuery afterShowForm ,并设置任何您想要的字段的自动完成财产。每个字段的ID的是相同的列模型的名称。

I do not believe that there is anything in the edit API to enable autofill on a field in the edit form. Though you could do it using jQuery in the event afterShowForm and set the autocomplete property on any of the fields that you wish. The ID's of each field is the same as the name in your column model.

afterShowForm : function (formid) {
    $('#name').attr('autocomplete', 'on');
}

这篇关于jqGrid的编辑表单自动完成= QUOT;关闭&QUOT;默认情况下,如何改变为自动完成= QUOT;在&QUOT;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆