jQuery UI dialog button text as a variable

后端 未结 12 1830
隐瞒了意图╮
隐瞒了意图╮ 2020-12-13 01:21

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.

12条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-13 02:04

    And don't forget

    $($("button", $(".info_dialog").parent())[1]).html("Button text here.");
    

提交回复
热议问题