jQuery UI 給button添加ID

$("#addOrEditApp").dialog({ modal: true ,maxHeight:dialogHeight,width:dialog_width,title: "修改",close:function(){resetFormApp();} ,
        buttons:[
            {
                id : "saveid",
                text : "肯定",
                click : function() {
                    saveApp();
                }
            },
            {
                id:"cancelid",
                text:"取消",
                click:function(){
                    closeDialogApp();
                }
            }
            ]
    });

 

 

參考地址:http://forum.jquery.com/topic/ui-dialog-form-add-a-button-with-an-id#14737000002068724jquery

相關文章
相關標籤/搜索