I'm using NetBeans for PHP. When I edit a .js file, it gives me JavaScript code completion. How can I get it to also give me jQuery code completion?
NetBeans 6.9 code auto-complete is not working for jQuery plug-ins.
The code auto-complete is working for jQuery but not for plug-ins such as the validate plugin.
Is this a bug in NetBeans 6.9?
Try this
http://netbeans.org/kb/docs/web/js-toolkits-jquery.html
or
You can also try following
http://forums.netbeans.org/topic15076.html
I add jquery.js to include path of project and it's working fine for me.
I was having the same problem. I have Netbeans 7.2.1 under linux (in an Oracle VirtualBox).
I found a solution based on How to include js file in another js file? I type out the following in the header:
var imported = document.createElement('script');
imported.src = 'jquery-1.10.2.js'; // I put the jquery library in the same folder
document.head.appendChild(imported);
Now I get auto-completion!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With