jquery は初めてで、ライトボックス フォームの表示に問題があります。これに似た形が欲しい。しかし、私はそれをカスタマイズする方法がわかりません
以下は私のコードです:
<html>
<head>
<title>Test Light Box</title>
<script type="text/javascript" src="jquery-ui-1.8.20.custom.min.js"></script>
<script type="text/javascript">
$("#dialog-form").dialog({
autoOpen: false,
height: 500,
width: 450,
modal: true,
Cancel: function() {
$( this ).dialog( "close" );
}
});
$("#create-uer")
.button()
.click(function(){
$( "#dialog-form" ).dialog( "open" );
});
</script>
</head>
<body>
<div id="dialog-form">
<form>
<fieldset>
<label for="name">Schlagwort</label>
<input type="text" name="search" id="search" />
</fieldset>
</form>
</div>
<button id="create-user">Create new user</button>
</body>