在编辑对话框表单中禁用 JQGrid 下拉列表
有谁知道如何通过 javascript 或 jQuery 知道如何禁用 jqGrid 编辑对话框表单中的选择(下拉)控件?
Does anyone know how through either javascript or jQuery know how to disable a select (dropdown) control within a jqGrid edit dialog form?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用 dataInit 事件 并执行 $ (element).attr("disable", "disable") 那里。要使每次显示表单时都发生这种情况,请设置选项以在每次显示时重新创建表单(默认情况下创建一次),或者尝试在 afterShowForm 事件。
Use dataInit event and do $(element).attr("disable", "disable") there. To make this happen everytime the form is shown, either set option to re-create form each time it is shown (by default it is created once), or try to set disabled in the afterShowForm event.