Hello all.
I want to know if it is possible to dynamically change a dialog buttons text via a callback from a button click. For example, if I created a simple dialog:
- var dialog = $("<div>Here is a dialog</div>").
- dialog({
- autoOpen:true,
- buttons:{
- Ok:function(){
- //change the text of this button here in the callback
- },
- Cancel:function(){
- $(this).dialog('close');
- }
- }
- });
Is it possible to do this? I Googled around and checked the dialog API but I couldn't see a way of changing the buttons. Any help is, as always, appreciated! Thanks!