jQuery keyword cannot recognize error [closed]
I am using jQuery 1.6.1 and want to use JqGrid (a grid table plugin for JQuery). However when I use it, I get the following error in Firebug:
开发者_如何学GojQuery("#confTable").jqGrid is not a function
I changed it to this:
$("#confTable").jqGrid is not a function
I tried using jQuery.noConflict();
before jqGrid code but still get the same error?
Any ideas?
This indicates that you have not loaded the plugin script (at least at the time you try to use it).
One of two things:
Quentin sounds right. It might not be loaded, check the path and filename are correct (caps is important (usuaLlY))
noConflict() is a bugger to use. It's only neccessary if you have 2 javascript libraries, like jquery and mootools. You have to use it after both libraries are loaded but before (most) plugins. This is because many plugin writters are lazy and use $ where they should use jQuery.
noConflict is a huge pain. I can only get it to work after an hour of tinkering, good luck.
精彩评论