I am trying to use a datepicker using native JSF( without any exotic faces) however since I discovered that it doesnt have native support, I have tried to implement it using jquery. However I have tried literally every solution for doing this on the internet, and the datepicker calendar just doesnt show up when i click on the textbox. In the console of the dev tools, it seems to be giving an error of "the method datepicker is not defined". why so? I have literally tried including&excluding every single library. Below is my most recent attempt.
<link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css"/>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
<script type="text/javascript" src="scripts/jquery-ui-1.8.21.custom.min.js"></script>
<script type="text/javascript">
$(function(){
$("#dateOfExpense").datepicker();
});
<h:inputText size="20" id="dateOfExpense"/>