$(document).ready(function () $ is not defined

25,957

This says that, missing jQuery source.

You should add jQuery source between head tags:

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js">

References must be in head tag following order:

<head>
    <title></title>
    <link rel="stylesheet" href="styles/kendo.common.min.css" />
    <link rel="stylesheet" href="styles/kendo.default.min.css" />
    <link rel="stylesheet" href="styles/kendo.default.mobile.min.css" />

    <script src="js/jquery.min.js"></script>
    <script src="js/kendo.all.min.js"></script>
</head>
Share:
25,957
Hassan Abbas
Author by

Hassan Abbas

Blockchain Consultant | AI | Data Science | HyperLedger | MEAN | MERN As a tech visionary, I strongly believe and foresee the unfolding potential that AI, Data Science and Blockchain hold for growth and development of businesses. I have the eye to transform business processes with a futuristic perspective that helps organisations harness these disruptive technologies.

Updated on July 09, 2022

Comments

  • Hassan Abbas
    Hassan Abbas almost 2 years

    I'm working on asp.net mvc and using Kendo UI grid control for data retrieving, using these functionality for another application working fine problem not in code. All JavaScript and Kendo grid ui reference including when i run the application i face these error

    $(document).ready(function () $ is not defined List:178 Uncaught TypeError: $(...).kendoDatePicker is not a function

    multiple time. when i click on error they show me error on this lines

    <script>
    $(document).ready(function () {
        $("#StartDate").kendoDatePicker();
    });
    

    I add assembly on reference but noting fruitful.

  • Hassan Abbas
    Hassan Abbas over 7 years
    write under <head > tag, but facing same issue List:178 Uncaught TypeError: $(...).kendoDatePicker is not a function
  • praguan
    praguan over 7 years
    You should also add kendoDatePicker source
  • Rajesh
    Rajesh over 7 years
    @HassanAbbas load scripts in following order: jQuery, Kendo, YourScripts
  • praguan
    praguan over 7 years
    @HassanAbbas, check your reference between head tags, I've edited my solution