1. 程式人生 > >jQuery UI 給button添加ID

jQuery UI 給button添加ID

tap pic fun dia closed jquer form mod class

$("#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#14737000002068724

jQuery UI 給button添加ID