I'm pretty new to mvc, razor and core 2.1 and this issue is keeping me up for hours. In my view I have a textbox of type datetime. I want to be able to select the date from a dropbox (see jquery datepicker).
I followed numerous tutorials, none worked.
One method I tried:
@{
ViewData["Title"] = "Nei Aktiviteit";
}
<h4>Nei Aktiviteit</h4>
<hr />
<script src="~/lib/jquery/dist/jquery.min.js"></script>
<script>
$(function () {
$("#datepicker").datepicker();
});
</script>
But I always get the following error
0x800a01b6 - Runtime error in JavaScript: The object does not support "datepicker"
Any help much appreciated.
User contributions licensed under CC BY-SA 3.0