March 19, 2012
How to enable jQuery intellisense on netbeans 7.1?
Question by BlackFire27
Possible Duplicate:
NetBeans jQuery plugin code completion
I downloaded the latest Netbeans, placed the following codes but the intellisense is not working.
<script type="text/javascript" src="js/jQuery.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$("a").click(function() {
alert("Hello world!");
});
});
</script>
Answer by Starx
I just found this link and should help you out.
Follow these steps
In your project folder, create a folder named js, and add it to your project.
Locate the jQuery library that you downloaded onto your computer. Copy the file to this js folder
Further more, it says to trigger the intellisense include the library as such
<script type="text/javascript" src="js/jquery-1.4.2.js"></script>
<!-- ^ Be sure to include the version number -->
<script type="text/javascript">
// Try it inside here and it should work
</script>