Hi guys and gals,
could someone please tell me how to include an ID on a button when adding it to a modal dialog form?
The closest I've got is to by using a css selector:
- $('.ui-dialog-buttonpane button:eq(0)')
but this seems to get broken when closing and reopening the dialog.
Any help will be very appreciated.
I have the following code.
- $('#dialog').dialog({
- bgiframe: true,
- // ...
- buttons: {
- 'Save': saveData,
- Cancel: function()
- {
- $(this).dialog('close');
- }
- }
- // ...
- })