I wonder what did I do wrong, my calendar date picker only works when I implement the JavaScript code inside my html page like this
<script>
$(function() {
$( ".datepick" ).datepicker();
});
</script>
But not working when I put the code externally.
$(document).ready(function() {
$( ".datepick" ).datepicker();
});