jquery dialog events
i'm using the dialog ui for jquery. it's works fine except that i can't seem to trigger any events, like open or close.
i the most simple version my code is this
$("#persoon_dialog").dialog({
open: function(event, ui){
alert('test open');
},
close: function(event, ui) {
alert('test close');
}
});
the dialog opens en closes but i can't even get the alert to work. i've looked at tons of examples but i can't figure ou开发者_开发技巧t what i'm doing wrong.
Anyone an idee?
The following syntax also can be helpful:
$("#mypopup").bind("dialogclose",function(e){
// do your stuff.
});
dialogopen can be used on dialog open event.
精彩评论