Can anyone tell me how can i use a variable for button text in jQuery UI dialog? I want to make a dynamic button name.
This will work $($("button", $("#dialogId").parent())[NUMBER_OF_YOUR_BUTTON]).text("My Text");
$($("button", $("#dialogId").parent())[NUMBER_OF_YOUR_BUTTON]).text("My Text");