Possible Duplicate:
jQuery dollar sign is undefined
I want to known Why does TypeError: $ is undefined Error Occurs ,
I known the alternative is to use jQuery which solves the problem, why does $ is undefined, even after using correct jQuery plugin.
Can any one Give me the Explanation regarding this , I known the alternative to be used and also why that alternative works . can any one Explain Me Please.
If your intent is to be using the jQuery library when you call
$(), then$is a function normally defined by the jQuery library when it loads. If that symbol is not defined when you try to use it, then there are these possibilities:$function before jQuery is loaded in which case you would either need to move the jQuery library earlier in your page or move the offending code after where jQuery is loaded.jQuery.noConflict()which causes the$symbol to be undefined. In this case, usingjQuery()will work instead of$().