Datepicker reload issue -
using datepicker plugin receiving following error
typeerror: $(...).daterangepicker not function @ htmldocument.eval (eval @ (https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js:2:2538), :6:31) @ m.callbacks.j (eval @ (https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js:2:2538), :2:27295) @ object.m.callbacks.k.add [as done] (eval @
$(function() { $('input[name="daterange"]').daterangepicker(); });
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> <script type="text/javascript" src="//cdn.jsdelivr.net/momentjs/2.9.0/moment.min.js"></script> <link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/bootstrap/3.3.2/css/bootstrap.css" /> <!-- include date range picker --> <script type="text/javascript" src="//cdn.jsdelivr.net/bootstrap.daterangepicker/1/daterangepicker.js"></script> <link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/bootstrap.daterangepicker/1/daterangepicker-bs3.css" /> <input type="text" name="daterange" value="01/01/2015 - 01/31/2015" />
please make sure have included right script files, in correct order :
<script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="moment.js"></script> <script type="text/javascript" src="daterangepicker.js"></script> <link rel="stylesheet" type="text/css" href="bootstrap.css" /> <link rel="stylesheet" type="text/css" href="daterangepicker-bs3.css" />
you can download these scripts here:
http://www.jsdelivr.com/
Comments
Post a Comment