c# – JavaScript runtime error: $ is undefined
c# – JavaScript runtime error: $ is undefined
You have not included jquery
in your file.
Something like this:
<script src=http://code.jquery.com/jquery-latest.min.js type=text/javascript></script>
Or if you have it already in your source files, include it from there.
You need to add jQuery
in order to use jQuery
, see how to use jQuery
<script src=http://code.jquery.com/jquery-latest.min.js type=text/javascript></script>
c# – JavaScript runtime error: $ is undefined
Make sure you reference jquery with a script tag