I am new to jquery and I am having a problem with displaying a lightbox form. I want a form simlilar to this. However, I have no idea how to customize it
Below is my code:
<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>
You should add jquery.css before this code:
Download jquery from this page
and add it your page