Microsoft JScript runtime error: '$' is undefined
问题 I am trying to hide/show elements in a view using following code: $('buttonClass/IDhere').click(function (){ $('theDivYouWantToShowClass/IDhere').toggle(); }); However, I am keep getting Microsoft JScript runtime error: '$' is undefined What might be the issue and how do I fix it? 回答1: $ is defined by default when you load jquery. I would try and use jquery() to see if somehow $ is being unloaded etc. You can also load up firebug and hit the page. It should show up as a global variable