I have the following Editor Template defined and when I call it from my View it is throwing the Uncaught ReferenceError: $ is not defined error.
@model System.DateTime?
<input id="@ViewData.ModelMetadata.PropertyName" title="datepicker" />
<script type="text/javascript">
$("#@ViewData.ModelMetadata.PropertyName").kendoDatePicker();
</script>
In my view I call the editor template as follows
@Html.EditorFor(m => m.DateHired)
I have tried to put the code into a Script section but it is still giving the same error.
@section Scripts
{
<script>
$(document).ready(function () {
$("#@ViewData.ModelMetadata.PropertyName").kendoDatePicker();
});
</script>
@