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#14737000002068724