An ASP.NET button click event is not firing

后端 未结 3 1395
死守一世寂寞
死守一世寂寞 2020-12-18 15:40

I have a button within a div which is hidden by default as it is used as a modal popup by jQuery UI.

The click event handler for this button never gets called, yet i

3条回答
  •  臣服心动
    2020-12-18 15:44

    The problem here is that jQuery-UI creates the dialog outside of the

    element, so clicking on it never submits the form.

    To get around this, rather than create a click event manually, you can just move the dialog

    back into the form. I did a quick search and the answer to this question already covers the issue.

    So you just need to make this change:

    
    

提交回复
热议问题