我如何实现和使用eye 's引导日期拾取器
How do I implement and use eyecon's bootstrap-datepicker?
我访问了Eyecon并下载了日期选择器。我有三个文件夹。'css', 'js'和'less'。我已经包括bootstrap-datepicker.js和最新的jquery.js和链接。css在头部:
<!DOCTYPE>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Test</title>
<link rel="stylesheet" type="text/css" href="../css/datepicker.css">
<link rel="stylesheet" type="text/css" href="../css/bootstrap.css">
<link rel="stylesheet" type="text/css" href="../css/bootstrap-responsive.css">
</head>
<body>
<div class="well">
<!--What should I enter here and where/how do I call the function?-->
</div>
<script type="text/javascript" src="../js/jquery.js"></script>
<script type="text/javascript" src="../js/bootstrap-datepicker.js"></script>
<script type="text/javascript" src="../js/bootstrap.js"></script>
</body>
</html>
可以看到,我已经在使用bootstrap库,因此也包含了它。
我现在的问题是:我如何实现和调用日期选择器函数?
$('element').datepicker();
,其中element
为某类,id等