Hello guys. I have a problem in putting jquery datepicker inside my php code. I already connect all the libraries I found related to this but it doesn;t work. It works like a usual text form, but not as a datepicker
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.11/jquery-ui.min.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.9/jquery-ui.js"></script>
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<script>
$( function() {
$( "#datepicker" ).datepicker();
} );
</script>
<form action="../admin/dcodes_action.php" id="new_code">
<input id="new_code_textfield" type="text" name="newcode" placeholder="Enter new code">
<input id="new_code_submit" type="submit" value="Submit">
<p><input type="text" name="eenddate" id="datepicker"></p>
</form>;