Created
February 3, 2011 09:30
-
-
Save honda0510/809261 to your computer and use it in GitHub Desktop.
jQuery UI Dialog sample
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" | |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
<title>jQuery UI Dialog Sample</title> | |
<link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.9/themes/redmond/jquery-ui.css" /> | |
<style> | |
#contents { display: none; } | |
</style> | |
</head> | |
<body> | |
<button id="open">open</button> | |
<div id="contents"> | |
Hello world | |
</div> | |
<script type="text/JavaScript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script> | |
<script type="text/JavaScript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.9/jquery-ui.min.js"></script> | |
<script type="text/JavaScript"> | |
(function($) { | |
$('#open').click( | |
function(e) { | |
$('#contents').dialog({ | |
title : 'jQuery UI Dialog' | |
, modal : true | |
}); | |
} | |
) | |
})(jQuery); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment