开发者

jquery dialog events

开发者 https://www.devze.com 2023-01-29 17:05 出处:网络
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'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

精彩评论

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

关注公众号