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

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -