Since my previous post, jQueryUI has updated as well as jQuery itself. The code is largely the same, but they did implement some of the usefulness that I proposed. Essentially, they added the ability to pass the name of the button as text, rather then as the key to a key->value pair object.
[caption id=”attachment_346” align=”alignleft” width=”543” caption=”The buttons are styled differently”][/caption]
With the code you interact with your dialogs like this.
Initialize a dialog with the buttons option specified.
Get or set the buttons option, after init.
Passing a class will cause your button to inherit that class and then you can use that class to style it just like in my previous post.