Make sure that you have provided a correct reference to the JQuery library.
Something like-
<script src="Scripts/jquery-1.11.3.min.js"></script>
or, CDN link like-
<script src="https://code.jquery.com/jquery-1.11.3.min"></script>
Also, make sure that you are referencing to JQuery version 1.7.x or later.
Hope, it helps :)