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.
var buttonName = "something"; $('#button-id').attr('value', buttonName);