I am trying to use bootstrap datepicker and it doesn't work. I have looked at so many pages in bootstrap regarding the same problem. I tried almost all of them but in the end it didn't work. It acts as a normal text field.
I have included bootstrap-datepicker.js in my file as well.
I found this example and I don't know why its not working:
<div id="search_modal" class="modal hide fade" style="width:50%;">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h3>Search for a room</h3>
</div>
<div class="modal-body" align="">
<label>City/place</label>
<div class="input-append"><input type="text" id="" name=""><span class="add-on"><i class="icon-search"></i></span></div>
<label>number of people</label>
<div class="input-append"><input type="text" id="number" name="number"></div>
</br>
<input type="text" id="dp1">
<script src="//cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.0.2/js/bootstrap-datepicker.min.js"></script>
<script type="text/javascript">
$( '#dp1' ).datepicker();
</script>
</div>
<div class="modal-footer" >
<button class="btn btn-secondary" data-dismiss="modal">Cancel</button>
<button class="btn btn-primary">Register</button>
</div>
</div>
<div class="">
<a class="btn btn-large btn-success" href="#search_modal" data-toggle="modal">Book a room ss</a>
</div>
How can I solve this?
Here are some of pages I looked in order to solve the problem.