mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-12-07 06:14:24 +00:00
28 lines
652 B
HTML
28 lines
652 B
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>jQuery UI Calendar - Display button bar</title>
|
|
<link rel="stylesheet" href="../../themes/base/all.css">
|
|
<link rel="stylesheet" href="../demos.css">
|
|
<script src="../../external/requirejs/require.js"></script>
|
|
<script src="../bootstrap.js">
|
|
$( "#calendar" ).calendar({
|
|
buttons: {
|
|
Today: function() {
|
|
$( this ).calendar( "valueAsDate", new Date() );
|
|
}
|
|
}
|
|
});
|
|
</script>
|
|
</head>
|
|
<body>
|
|
|
|
<div id="calendar"></div>
|
|
|
|
<div class="demo-description">
|
|
<p>Display a button for selecting Today's date with the <code>buttons</code> option.</p>
|
|
</div>
|
|
</body>
|
|
</html>
|