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
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 So you just need to make this change: