【发布时间】:2012-04-25 09:26:18
【问题描述】:
是否可以为 jQuery UI 对话框中的按钮设置 ID,以便以后可以通过 jQuery 引用它们?比如触发事件、禁用等?
... in the dialog setup ...
buttons: {
"Sök": function () {
var bValid = true;
},
"OK": function () {
if (OK()) {
getStuffNoteringar($("#txtStuffId").val());
$(this).dialog("close");
}
}
.... later on in some javascript code....
$('#OK').click();
【问题讨论】:
标签: javascript jquery jquery-ui