Does anyone know how through either javascript or jQuery know how to disable a select (dropdown) control within a jqGrid edit dialog form?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
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.