Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I get jQuery code completion in NetBeans?

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?

alt text

like image 966
Edward Tanguay Avatar asked Oct 22 '09 01:10

Edward Tanguay


People also ask

How is jQuery executed?

The purpose of using jQuery is to make the javascript code easy to execute on the website, as jQuery wraps the many lines of code written in javascript, into a method that can be called with a single line of code. For this reason, a lot of common tasks that require javascript can be taken by jQuery.

Where you can use jQuery?

JQuery can be used to develop Ajax based applications. It can be used to make code simple, concise and reusable. It simplifies the process of traversal of HTML DOM tree. It can also handle events, perform animation and add ajax support in web applications.


1 Answers

First go to Tools -> Options -> Miscellaneous and click on the Javascript tab, make sure the targeted browsers are configured properly, code completion changes by the minimal version of the targeted browsers to make sure that the functionality is supported.

You also need to add the jquery js file to your project so netbeans would be able to parse it and to properly add code completion.

like image 177
ufk Avatar answered Sep 20 '22 02:09

ufk