190
rated 0 times
[
191]
[
1]
/ answers: 1 / hits: 173770
/ 8 Years ago, fri, october 14, 2016, 12:00:00
I am trying to implement the date time picker as explained here https://eonasdan.github.io/bootstrap-datetimepicker/#minimum-setup, I have downloaded the js
file css
file to the directory js
and css
. But the calendar is not popup up when click on icon.
$(function() {
$('#datetimepicker1').datetimepicker();
});
<link rel=stylesheet href=https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css>
<script src=https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js></script>
<script src=https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js></script>
<link rel=stylesheet type=text/css href=css/bootstrap-datetimepicker.css>
<link rel=stylesheet type=text/css href=css/bootstrap-datetimepicker.min.css>
<link rel=stylesheet type=text/css href=css/bootstrap-datetimepicker-standalone.css>
<script type=text/javascript src=js/bootstrap-datetimepicker.min.js></script>
</head>
<body>
<div class=container>
<div class=row>
<div class='col-sm-6'>
<div class=form-group>
<div class='input-group date' id='datetimepicker1'>
<input type='text' class=form-control />
<span class=input-group-addon>
<span class=glyphicon glyphicon-calendar></span>
</span>
</div>
</div>
</div>
</div>
</div>
More From » html