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

Popular posts from this blog

Using Android Volley to post an array to PHP -

python - How to add an model instance to a django queryset? -

angularjs - No 'Access-Control-Allow-Origin' error from local domain to public API -