Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用添加表单将记录添加到我的 JQGrid。其中一个字段是复选框。有谁知道如何在表单显示时默认选中复选框。我认为它会使用 onInitializeForm 事件和 setCell 方法,但我没有运气。谢谢。
找到了:
beforeShowForm: function(eparams) { document.getElementById('calc_next_svc').checked = 'true'; } }, // add options