How can I get jQuery code completion in NetBeans?
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.
How can I get jQuery code completion in NetBeans?
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.
jQuery Code Completion in Netbeans for *.js Files
Problem solved.
- Downloading the developer version of jquery
- Include the jquery file in js/jquery-Version.js
- Adjust the BrowserSupportSettings in Options->Misc
Netbeans JQuery Selector auto-complete
Naor answer made me rethink what I was doing, but it didn't quite answer my question. So let me provide the solution I found in case anyone is interested.
When working with netbeans, the auto-complete function behaves differently between php files and html. In html jquery selectors auto-completes as expected. But when trying to do the same within a php file in an html section of code, it will fail to auto-complete.
Just make sure that if you are expecting this feature to work, that you are using html files, not php. I will submit this as a feature/bug to the netbeans guys, hopefully they can fix it and make html/js auto-completion available to all file types that can include html/js code.
JQuery-Mobile code assist (code (auto) completion, code hinting) for Netbeans IDE
I figured we could drop the un-answered rate a bit here:
If the application (Netbeans) is going to parse a script to get function names then you should give it a file with function names rather than the minified/obfuscated version.
Related Topics
Multi-Dimensional Array Post from Form
Accented Characters in MySQL Table
If You Create a Variable Inside a If Statement Is It Available Outside the If Statement
Avoiding MySQL Injections with the Zend_Db Class
How to Get the External Ip of My Server Using PHP
Kill MySQL Query on User Abort
PHP Switch Case Statement to Handle Ranges
Jquery UI Autocomplete with JSON and Ajax
How to Set Curlopt_Cainfo Globally for PHP
JSON: PHP to JavaScript Safe or Not
Codeigniter: How to Do a Select (Distinct Fieldname) MySQL Query
Add a Fee to Woocommerce Per Product, Based on Category
How to Capture Search Term from Google Search
How to Send Money to Paypal Using PHP
Installing Imagemagick Extension with PHP/Windows
Jquery Load() and PHP Variables
Curl - Load a Site with Cloudflare Protection
Imagecreatefromjpeg and Similar Functions Are Not Working in PHP