jquery ui 弹出框

<scripttype="text/javascript"src="jquery-1.4.2.min.js"></script>

<scripttype="text/javascript"src="jquery-ui-1.8.10.custom.min.js"></script>

<linkrel="stylesheet"type="text/css"href="jquery-ui-themes.css"></link>

<divid="dialog-show"title="*">

<formaction='*!**.action'method='post'>

name:<inputtype="text"name="name"/>

<form>

</div>

<ahref="javascript:show();">123465789</a>

<scripttype="text/javascript">

$("#dialog-show").dialog({

modal:true,

resizable:false,

closeOnEscape:true,

autoOpen:false,

buttons:{

Create:function(){

$("#dialog-showform").submit();

$(this).dialog("close");

}

}

});

</script>//放在html最后面

js文件//得导入

functionshow(){

$("#dialog-create-instance").dialog("open");

}

相关推荐