I’m using a DateRangePicker plugin in my code.
Here is my code:
<script type="text/javascript" src="<?php echo base_url ?>js/jquery-1.7.2.min.js"></script>
<script src="js/jquery-ui.js"></script>
<script type="text/javascript" src="<?php echo base_url ?>js/date.js"></script>
<script type="text/javascript" src="<?php echo base_url ?>js/daterangepicker.jQuery.compressed.js"></script>
<p>
<strong>Pickup :</strong>
<input type="text" id="pickupdate" name="pickupdate" class="datepicker" >
</p>
When I click on the textbox, I get the following error in my console:
Uncaught RangeError: Maximum call stack size exceeded
If anybody knows why this happens, please let me know.
I found a solution. The real problem was that I was including both
date.jsas well asdaterangepicker.jQuery.compressed.js. After closer inspection, it appears that they contain the same functionality, so I just removeddate.jsfrom the page. I hope this will help someone who may run into a similar problem in the future.