Using jquery with bootstrap

im trying to use the daterangepicker
http://www.daterangepicker.com/#usage
in my form and am having issues


I thought the error in the console told me I didn’t have jquery but dont I?

</div>
<?php include "inc/footer.php"; ?>
<script type="text/javascript" src="//cdn.jsdelivr.net/jquery/1/jquery.min.js"></script>
<script type="text/javascript" src="//cdn.jsdelivr.net/momentjs/latest/moment.min.js"></script>
<!--//<link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/bootstrap/3/css/bootstrap.css" />
--><!-- Include Date Range Picker -->
<script type="text/javascript" src="//cdn.jsdelivr.net/bootstrap.daterangepicker/2/daterangepicker.js"></script>
<link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/bootstrap.daterangepicker/2/daterangepicker.css" />
<script src="https://netdna.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="js/jasny-bootstrap.min.js"></script>
<script src="https://code.jquery.com/jquery.js"></script>
<script src="js/bootstrap.min.js"></script>
<script type="text/javascript">
$(function() {
    $('input[name="Date"]').daterangepicker({
		
	locale: {
      format: 'YYYY-MM-DD'
	},
	singleDatePicker: true,
	showDropdowns: true
	});
});
</script>
</body>
</html>

You seem to have jquery listed twice. Comment out this lines. I don’t know if this will solve your problem, but it will make for a less bloated page.

1 Like

Ya, that was it, thanks

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.