javascript - jQuery UI dialog picking title from cache -
javascript - jQuery UI dialog picking title from cache -
here code i'm using
http://jsbin.com/evike5/edit
when jquery ui dialog fired sec time. updated title not shown.
am doing wrong?
this because you're opening same dialog, take effect either need destroy old dialog, this:
$("#hello").dialog('destroy').attr("title", "helloooooooo!")
try here.
or set title , button behavior without re-creating dialog, ok button:
ok: function () { $(this).dialog("close") .dialog("option", { buttons: { ok: function () { $(this).dialog("close"); } }, title: "helloooooooo!" }).dialog("open"); }
you can give seek here.
javascript jquery jquery-ui jquery-ui-dialog
Comments
Post a Comment