One of the nice things about the JQuery UI dialog box is that it has an option for buttons that automatically positions them correctly. I just wonder: can I somehow place elements next to the buttons? Do I have a small Ajax-Loader gif that I would like to display in the lower left corner of the dialog, while the buttons remain in the lower right corner?
I know that I can just remove the buttons and create them manually in HTML, but since jQuery takes care of positioning and styling for me, I would like to keep this functionality, if that makes sense.
$("#newProjectDialog").dialog({ bgiframe: true, resizable: false, width: 400, modal: true, overlay: { backgroundColor: '#000', opacity: 0.5 }, buttons: { 'Create': function() { $("#ajax-loader").show(); // Make the Ajax Call and whatever else is needed $(this).dialog('destroy'); }, Cancel: function() { $(this).dialog('destroy'); } } });
javascript jquery jquery-ui
Michael stum
source share