While using date picker in my code its working when I have not called it inside the function like :
<script src="~/Content/js/bootstrap-datepicker.js"></script>
<script type="text/javascript">
$('.datepicker').datepicker({
autoclose: true,
format: 'dd/mm/yyyy'
});
</script >
But when I am calling this inside function :
<script src="~/Content/js/bootstrap-datepicker.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$('.datepicker').datepicker({
autoclose: true,
format: 'dd/mm/yyyy'
});
});
</script >
its giving me error date picker is not defined. Please tell me where I am wrong. Thanks in advance.
bootstrap-datepicker.jsloading? That~/looks kind of scary :)