curiouswebster
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!
Does anyone have any ideas about why not?
Thanks!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
MISPELLED filename:
<script defer src="@Url.Content("~/Publi shedConten t/js/libs/ juery-ui.j s")"></scr ipt>
<script defer src="@Url.Content("~/Publi
ASKER
The path was the problem. Thanks!
remove in bold
$(document).ready(function () {
$(function () {
$("#datepicker").datepicke r({});
});
});
>BUT, Visual Studio claims the file is not found.
this is your error, I can't fix it for you
$(document).ready(function
$(function () {
$("#datepicker").datepicke
});
});
>BUT, Visual Studio claims the file is not found.
this is your error, I can't fix it for you
ASKER
I have this at the bottom of my cshtml file
<script>
$(document).ready(function
$(function () {
$("#datepicker").datepicke
});
});
</script>
I have this right about the above script section:
<script defer src="@Url.Content("~/Publi
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>