How to attach callback to jquery effect on dialog show?

前端 未结 5 848
谎友^
谎友^ 2020-11-29 07:40

My problem is that I do not know how to attach callback to the jquery ui dialog show.

The show is actually an option:

$( \".selector\" ).dialog({ sh         


        
5条回答
  •  半阙折子戏
    2020-11-29 07:51

    I found it necessary to use the "focus:" event. I was losing the correctly selected button because of the show:. Lovely interactions.

    focus: function( event, ui ) {
        $(this).siblings('.ui-dialog-buttonpane').find("button:contains('Upload')").focus();
    },
    

提交回复
热议问题