Setting JQuery UI Dialog buttons label with the content of a variable

Setting JQuery UI Dialog buttons label with the content of a variable


Hi,
I use JQuery UI 1.7.2. Dialog widget.
Is it possible to set the label of a button with a value contained in
a variable ? I need to build a generic dialog box, the label of the
buttons being not known until runtime. May be the answer is more on
the javascript side rather than on the Jquery UI side ...