core 2.1 mvc datetimepicker for input asp-for

0

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.

jquery
datepicker
.net-core
asked on Stack Overflow Jul 22, 2018 by Jeppen

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0