jquery ui dialog - live not working?
Posted
by ile
on Stack Overflow
See other posts from Stack Overflow
or by ile
Published on 2010-06-10T12:08:07Z
Indexed on
2010/06/10
12:12 UTC
Read the original article
Hit count: 205
I'm using this dialog: http://docs.jquery.com/UI/Dialog
To open dialog I do it this way:
$('a.openModal').live("click", function() {
var idArr = $(this).attr('id').split("OpenNote");
var id = idArr[1];
alert($(".modalNote#dialog-modal" + id).html());
$(".modalNote#dialog-modal" + id).dialog('open');
return false;
});
This dialog is used to display content of note when title is clicked. When I generated html on pageload, then this works fine, but if I add html dynamically then dialog won't open. It is also not hidden when it's appended to div.
Is it possible to open it "on-fly"?
© Stack Overflow or respective owner