且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

弹出窗口中的触发器保存按钮

更新时间:2023-10-13 12:56:40

' #<% = agenda-event-create%>')。click();


' #modal-wrapper')。modal(' hide'); // 测试ModaL POPUP
},

}
})





但保存按钮没有触发。



谢谢


您需要在load事件中调用click事件处理程序。您可以尝试 start:


Hi everybody,

I want to automatically trigger the save button in popup.

showBootstrapModal('/AgendaEvent/Edit/', {
                               id: event.id,
                               title: event.title,
                               start: event.start.format(),
                               end: event.end.format(),
                               top: (jsEvent.clientY - 240) + 'px',
                               left: (jsEvent.clientX - 260) + 'px',
                               buttons: {
                                   Save: function () {
                                       $('#<%=agenda-event-create %>').click();
                                       $('#modal-wrapper').modal('hide'); //Test ModaL POPUP
                                   },

                               }
                           })



But the save button is not triggering.

Thank you

('#<%=agenda-event-create %>').click();


('#modal-wrapper').modal('hide'); //Test ModaL POPUP }, } })



But the save button is not triggering.

Thank you


You need to call the click event handler in the load event.You can try start: