打开模式对话框上的关闭按钮后,如何触发选项卡打开?这是我到目前为止的代码,它只向我显示纯文本的错误消息。
<script>
$(function() {
$( "#dialog-message" ).dialog({
modal: true,
buttons: {
Ok: function() {
$( this ).dialog( "close" );}}
});
$("#tabs").tabs("select",1);
return false;
});
});
</script>
<div id="dialog-message" title="Incorrect password">
The password you have provided is incorrect.<br>Please try again.
</div>