Link to home
Start Free TrialLog in
Avatar of curiouswebster
curiouswebsterFlag for United States of America

asked on

My jQuery Date Picker's not working

I have added the necessary javascript file (I think) and the CSS as well, for now into the same folder as jquery-ui.js. But when I click the control the calendar is not opening.

Does anyone have any ideas about why not?


Thanks!
ASKER CERTIFIED SOLUTION
Avatar of leakim971
leakim971
Flag of Guadeloupe image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of curiouswebster

ASKER

Still not working...

I have this at the bottom of my cshtml file

<script>
    $(document).ready(function () {
        $(function () {
            $("#datepicker").datepicker({});
        });
    });
</script>

I have this right about the above script section:
<script defer src="@Url.Content("~/PublishedContent/js/libs/juery-ui.js")"></script>            

BUT, Visual Studio claims the file is not found. However, I see the file in my Visual Studio Solution at that address AND I see the file in Windows Explorer in the folder location.

Also, I have this field defined:
                    <div class="ui-datepicker">
                        <p>jQuery-ui Date Picker: <input type="text" id="datepicker"></p>
                    </div>
MISPELLED filename:
<script defer src="@Url.Content("~/PublishedContent/js/libs/juery-ui.js")"></script>
The path was the problem. Thanks!
remove in bold

 $(document).ready(function () {
       $(function () {
            $("#datepicker").datepicker({});
       });
    });


>BUT, Visual Studio claims the file is not found.
this is your error, I can't fix it for you