Alex Rivera | Logout

Dynamically Changing jQuery UI dialog box Button Text

Asked 2011-01-04T08:06:30.780
22

I am using jQuery UI Dialog box for ajax form submit. I want change the text of my save button to wait , when user click on it and back to Save when ajax call complete. pls help me

Edit
Report

1 Answer

2

Note the correct way to create multiple buttons on the fly:

'buttons', [
    {
        text: "Download",
        click: function () {...}
    },
    {
        text: "Not now",
        click: function () {...}
    }
]

Here is an example using the non-array style: See this jsFiddle for an example.

answered 2013-06-09T19:51:43.853

Your Answer