It works fine. Thank you for your help. Bernard
On 19 août, 22:23, Jörn Zaefferer <[email protected]> wrote: > Something like this should do the trick: > > var buttons = {}; > buttons[okButtonText] = okButtonCallback; > $(...).dialog({ > buttons: buttons > > }); > > Where okButtontext is the variable you mention. > > Jörn > > On Wed, Aug 19, 2009 at 7:10 PM, bear1492<[email protected]> wrote: > > > 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 ... --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery UI" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en -~----------~----~----~----~------~----~------~--~---
