I am trying to use jquery datepicker in the page.I have zipped the necessary file jquery-1.8.0.min.js,jquery-ui-1.8.23.custom.min.js and jquery-ui-1.8.7.custom.css
and uploaded it as static resource. But the datepicker is not working.
I have named the file as JqueryTest in static resource.The main zipped folder name is JqueryFile-->The JqueryFile has 2 foldes-->js and css.
Visual force page
<apex:page controller="check_Format" sidebar="true" showChat="true" >
<head>
<apex:includeScript value=" {!URLFOR($Resource.JQueryTest,'JqueryFile/js/jquery-1.8.0.min.js')}" />
<apex:includeScript value="{!URLFOR($Resource.JQueryTest,'JqueryFile/js/jquery-ui-1.8.23.custom.min.js')}" />
<apex:stylesheet value="{!URLFOR($Resource.JQueryTest,'JqueryFile/css/jquery-ui-1.8.7.custom.css')}" />
</head>
<script>
var j$ = jQuery.noConflict();
<script>
$(function() {
$( "#datepicker" ).datepicker();
});
</script>
<apex:form id="theForm">
<body>
<div class="demo">
<p>Date: <input id="datepicker" type="text" /></p>
</div>
</body>
</apex:form>
</apex:page>
Where i am doing wrong?Please suggest.
In console i am getting the following error
Thanks.
error:-$ is not a function