0x800a01b6 - JavaScript runtime error: Object doesn't support property or method 'datetimepicker'

0

I am trying to implement datetimepicker from here but I am getting the error 0x800a01b6 - JavaScript runtime error: Object doesn't support property or method 'datetimepicker'

I have already tried the solution given in this post When I try with just datepicker() it works fine, but I need to show time as well.

Below is the code:

<script src="~/assets/Validations/jquery.unobtrusive-ajax.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.17.37/css/bootstrap-datetimepicker.min.css" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.10.6/moment.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>

<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.17.37/js/bootstrap-datetimepicker.min.js"></script>



<div class="form-group">
     <label class="col-md-4">Performed At From:</label>
     <div class="col-md-8 input-group date" tabindex="5">                                            
         @Html.TextBoxFor(x => x.filter.selectedFromDate, new { @class = "form-control", id = "datetimepicker1", @type = "text" })
     <span class="input-group-addon">
     <span class="glyphicon glyphicon-calendar"></span>
     </span>
    </div>

<script type="text/javascript">
                $(function () {
                    $('#datetimepicker1').datetimepicker();
                });
</script>

Any kind of help would be really appreciated. Thank you.

javascript
bootstrap-datetimepicker
asked on Stack Overflow Nov 1, 2019 by sumedha • edited Nov 1, 2019 by sumedha

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0