Problem solved! I needed to use $('#dialog').dialog('destroy') rather than .dialog('close')
On Dec 2, 10:39 am, Rich <reholme...@googlemail.com> wrote: > I am using the jQuery .dialog UI as a confirm pop up when someone > tries to delete an item from a website. The dialog has 2 buttons, one > to confirm the delete, which then carries out an ajax request, and > another to cancel the delete request which closes the dialog window. > Both buttons work as expected but if you choose to cancel the > operation which calls $('#dialog').dialog('close'); the dialog > disappears but I can then no longer use the delete button again, > either it loses the click function or the dialog function no longer > works. I have tried adding $('#dialog').dialog('enable'); after the > close but this didn't make any difference either? > > Thanks > > Richard