gpt4 book ai didi

php - 如何在JQgrid元素中添加功能,例如选择框中的Onchange事件

转载 作者:行者123 更新时间:2023-12-01 07:20:03 25 4
gpt4 key购买 nike

我正在使用Jqgrid并且在编辑模式下我正在使用 JQgrid 元素中的函数,类似于选择框中的 Onchange 事件

代码是这样的

{name:'tipo_norma',index:'tipo_norma', editable:true, 
width:'90',align:'center',edittype:'select',editoptions:
{dataUrl:'../ajax/selectNorma.php' }}

我想在tipo_norma组合框的Onchange事件中添加myfunction()。

最佳答案

使用editoptions中的dataEvent

    editoptions: { dataEvents: [
{ type: 'change', fn: function(e) {myfunction(); } },

]}

关于php - 如何在JQgrid元素中添加功能,例如选择框中的Onchange事件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14787064/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com