开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜