I want do wrap error messages that appears (in #error div) and disappears from page to page in a jQuery UI dialog. Some of error messages are added dynamically by jQuery $('body').append('blablabla') or another insertion method. So this construction:
$('#error').load(function() {
$('#error').dialog({
draggable: false,
modal: true
});
});
is not work. This:
$('#error').live('load', function() {
$('#error').dialog({
draggable: false,
modal: true
});
});
is not work either. Can anybody tell me what should I do?